Module: Admin::BaseHelper

Defined in:
app/helpers/admin/base_helper.rb

Instance Method Summary collapse

Instance Method Details

#class_commentsObject

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_galleriesObject

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_picturesObject

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_settingsObject

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_adminObject

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