class Admin::CategoriesController < ApplicationController
	layout 'admin'

	def index
		@categories = Category.find(:all)
	end
	
	def create
		category = Category.create(params[:category])
		render(:partial => "category", :object => category, :layout => false)
	end
	
	def delete
		Category.destroy(params[:id])
		render :nothing => true
	end
end