aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/refinery/blog/categories_controller.rb
blob: 467726eed75c2721ba393bcb97738d3c714a724a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
module Refinery
  module Blog
    class CategoriesController < BlogController

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

    end
  end
end