blob: a363b8c27be941cdc4b2b2b211ab9c56895db658 (
plain) (
tree)
|
|
module Refinery
module Blog
class CategoriesController < BlogController
def show
@category = Refinery::BlogCategory.find(params[:id])
@blog_posts = @category.posts
.live
.includes(:comments, :categories)
.page(params[:page])
end
end
end
end
|