Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
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

Instance Method Summary collapse

Methods included from BlogHelper

#blog_archive_list, #blog_post_teaser, #next_or_previous?

Instance Method Details

#find_tagsObject



25
26
27
# File 'app/controllers/application_controller.rb', line 25

def find_tags
  @tags = BlogPost.tag_counts_on(:tags)
end

#load_assetsObject

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