Class: HomeController

Inherits:
ApplicationController show all
Defined in:
lib/app/controllers/home_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
# File 'lib/app/controllers/home_controller.rb', line 2

def index
  @recent_articles = Article.find :all,
                                  :order => 'created_at DESC',
                                  :limit => 5
end