class ApplicationController
Filters added to this controller apply to all controllers in the application. Likewise, all the methods added will be available for all controllers.
Public Instance Methods
latests()
click to toggle source
# File lib/generators/squeezer/templates/app/controllers/application_controller.rb, line 12 def latests Blog.paginate :page =>1,:per_page=>5, :order => 'created_at DESC' end
site()
click to toggle source
# File lib/generators/squeezer/templates/app/controllers/application_controller.rb, line 16 def site return Site.last end