Class: Refinery::Blog::CategoriesController

Inherits:
BlogController
  • Object
show all
Defined in:
app/controllers/refinery/blog/categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
# File 'app/controllers/refinery/blog/categories_controller.rb', line 5

def show
  @category = Refinery::Blog::Category.find(params[:id])
  @posts = @category.posts.live.includes(:comments, :categories).with_globalize.page(params[:page])
end