Class: AppyantraAdmin::HomeController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#add_breadcrumb, #asset_display_name, #current_breadcrumb, #get_object_name, #set_objects

Instance Method Details

#indexObject



6
7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/appyantra_admin/home_controller.rb', line 6

def index
  if admin_signed_in?
    @page_title = 'Home'
    add_breadcrumb([@page_title, main_app.root_path])
    current_breadcrumb 'Dashboard'
    @assets = AppyantraAdmin.assets
    @page_title = 'Home'
  else
    redirect_to main_app.new_admin_session_path
  end
end

#websiteObject



18
19
20
21
# File 'app/controllers/appyantra_admin/home_controller.rb', line 18

def website
  @page_title = 'Website Home'
  render '/website/index', layout: 'application'
end