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.friendly.find(params[:id])
  @posts = @category.posts.live.newest_first.uniq.includes(:comments, :categories).with_globalize.page(params[:page])
end