Sha256: 1d41e9d63ce24e92fa24be313fb08b07c6c836095852a874d2e21734d6ce5142
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
module Admin::BaseHelper # Define the title of page in Administration def page_title_admin return "Pictrails - Administration - #{@page_title}" if @page_title return 'Pictrails - Administration' end # return 'current' string if the controller name is galleries def class_galleries if controller.controller_name == 'galleries' "current" end end # return 'current' string if the controller name is pictures def class_pictures if controller.controller_name == 'pictures' "current" end end # return 'current' string if the controller name is settings def class_settings if controller.controller_name == 'settings' "current" end end # return 'current' string if the controller name is comments def class_comments if controller.controller_name == 'comments' "current" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pictrails-0.5.0 | app/helpers/admin/base_helper.rb |