Class: Dashboard::ApplicationController

Inherits:
Faalis::Dashboard::ApplicationController show all
Defined in:
lib/generators/faalis/templates/dashboard_controller.rb

Instance Attribute Summary

Attributes included from Faalis::Dashboard::DSL

#_override_views

Instance Method Summary collapse

Methods included from Faalis::Dashboard::Sections::ResourceDestroy

#destroy

Methods included from Faalis::Dashboard::Sections::ResourceShow

#show

Methods included from Faalis::Dashboard::Sections::ResourceCreate

#create, #edit, #new, #update

Methods included from Faalis::Dashboard::Sections::ResourcesIndex

#index

Methods included from Faalis::Dashboard::Sections::Resource

#_resource_title

Methods inherited from Faalis::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/faalis/templates/dashboard_controller.rb', line 3

def setup_sidebar
  @sidebar = sidebar(t('faalis.engine_name')) do |s|
    s.faalis_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 Faalis guides.
  end
end