Class: Admin::HomeController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#require_admin, #set_active_menu

Methods inherited from ApplicationController

#fresh_when, #redirect_back_or_default, #redirect_referrer_or_default, #render_403, #render_404, #render_optional_error_file, #require_user, #set_active_menu, #set_locale, #set_seo_meta, #store_location, #unread_notify_count

Instance Method Details

#indexObject


3
4
5
# File 'app/controllers/admin/home_controller.rb', line 3

def index
  @recent_topics = Topic.recent.limit(5)
end