Class: Trestle::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/trestle/dashboard_controller.rb

Instance Method Summary collapse

Methods included from ModalHelper

#modal_dialog_attributes, #modal_options, #modal_options!, #modal_wrapper_attributes

Methods included from Controller::Location

#set_trestle_location_header

Methods included from FlashHelper

#debug_form_errors?, #instance_has_errors?, #normalize_flash_alert

Instance Method Details

#indexObject



2
3
4
5
# File 'app/controllers/trestle/dashboard_controller.rb', line 2

def index
  admin = primary_admin
  redirect_to admin.path if admin
end