Module: Admin::BaseHelper
- Defined in:
- app/helpers/admin/base_helper.rb
Instance Method Summary collapse
-
#class_comments ⇒ Object
return ‘current’ string if the controller name is comments.
-
#class_galleries ⇒ Object
return ‘current’ string if the controller name is galleries.
-
#class_pictures ⇒ Object
return ‘current’ string if the controller name is pictures.
-
#class_settings ⇒ Object
return ‘current’ string if the controller name is settings.
-
#page_title_admin ⇒ Object
Define the title of page in Administration.
Instance Method Details
#class_comments ⇒ Object
return ‘current’ string if the controller name is comments
31 32 33 34 35 |
# File 'app/helpers/admin/base_helper.rb', line 31 def class_comments if controller.controller_name == 'comments' "current" end end |
#class_galleries ⇒ Object
return ‘current’ string if the controller name is galleries
10 11 12 13 14 |
# File 'app/helpers/admin/base_helper.rb', line 10 def class_galleries if controller.controller_name == 'galleries' "current" end end |
#class_pictures ⇒ Object
return ‘current’ string if the controller name is pictures
17 18 19 20 21 |
# File 'app/helpers/admin/base_helper.rb', line 17 def class_pictures if controller.controller_name == 'pictures' "current" end end |
#class_settings ⇒ Object
return ‘current’ string if the controller name is settings
24 25 26 27 28 |
# File 'app/helpers/admin/base_helper.rb', line 24 def class_settings if controller.controller_name == 'settings' "current" end end |
#page_title_admin ⇒ Object
Define the title of page in Administration
4 5 6 7 |
# File 'app/helpers/admin/base_helper.rb', line 4 def page_title_admin return "Pictrails - Administration - #{@page_title}" if @page_title return 'Pictrails - Administration' end |