Class: Dashboard::ApplicationController

Inherits:
Underworld::Dashboard::ApplicationController show all
Defined in:
lib/generators/underworld/templates/dashboard_controller.rb

Instance Attribute Summary

Attributes included from Underworld::Dashboard::DSL

#_override_views

Instance Method Summary collapse

Methods included from Underworld::Dashboard::Sections::ResourceDestroy

#destroy

Methods included from Underworld::Dashboard::Sections::ResourceShow

#show

Methods included from Underworld::Dashboard::Sections::ResourceCreate

#create, #edit, #new, #update

Methods included from Underworld::Dashboard::Sections::ResourcesIndex

#index

Methods included from Underworld::Dashboard::Sections::Resource

#_resource_title

Methods inherited from Underworld::ApplicationController

#set_locale

Instance Method Details

#setup_sidebarObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/generators/underworld/templates/dashboard_controller.rb', line 3

def setup_sidebar
  @sidebar = sidebar(t('underworld.engine_name')) do |s|
    s.underworld_entries

    # Put your sidebar entries in here like this:
    #
    # s.menu(title, icon: 'fa fa-book') do
    #   s.item(title,
    #          url: main_app.dashboard_books_path,
    #          model: 'Book')
    # end
    #
    # For more information take a look at `sidebar` section of Underworld guides.
  end
end