Class: BlogArticlesController
- Inherits:
-
ArticlesController
- Object
- ArticlesController
- BlogArticlesController
- Defined in:
- app/controllers/blog_articles_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/blog_articles_controller.rb', line 2 def index articles if defined?(Comment) articles.includes!(:approved_comments_counter) end # set after articles are fetched @category ||= section.categories.build(title: "All Categories") if skip_caching? or stale?([site, section], public: true) respond_to do |format| format.html { render :template => "blogs/articles/index" } format.atom { render :template => "blogs/articles/index", :layout => false } end end end |