Class: ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ApplicationController
- Includes:
- BlogHelper
- Defined in:
- app/controllers/application_controller.rb
Overview
@Name: Application controller @Use: This is the main application controller which is public to all project files @Created date: 08-06-2012 @Modified Date: 12-06-2012
@Company: Mindfire Solutions
Direct Known Subclasses
Admin::Blog::CategoriesController, Admin::Blog::CommentsController, Admin::Blog::PostsController, Admin::Blog::SettingsController, BlogController
Instance Method Summary collapse
- #find_tags ⇒ Object
-
#load_assets ⇒ Object
Assigning array of javascript needed for all pages defaultly.
Methods included from BlogHelper
#blog_archive_list, #blog_post_teaser, #next_or_previous?
Instance Method Details
#find_tags ⇒ Object
25 26 27 |
# File 'app/controllers/application_controller.rb', line 25 def @tags = BlogPost.tag_counts_on(:tags) end |
#load_assets ⇒ Object
Assigning array of javascript needed for all pages defaultly
18 19 20 21 |
# File 'app/controllers/application_controller.rb', line 18 def load_assets AssetManager.include_contrib_library [:core_ui, :jquery_tab] AssetManager.include_css "blog_global" end |