Class: Buttercms::CategoriesController

Inherits:
BaseController
  • Object
show all
Defined in:
lib/generators/templates/app/controllers/buttercms/categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
# File 'lib/generators/templates/app/controllers/buttercms/categories_controller.rb', line 2

def show
  @category = ButterCMS::Category.find(params[:slug], :include => :recent_posts)
end