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

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

    end
  end
end