1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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