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

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

    end
  end
end