Module: JefferiesTube::ApplicationHelper
- Defined in:
- app/helpers/jefferies_tube/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#naive_page_title ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/jefferies_tube/application_helper.rb', line 2 def naive_page_title return @page_title if @page_title controller = params[:controller] title = case params[:action] when "new" "New #{controller.singularize.titlecase}" when "edit" "Editing #{controller.singularize.titlecase}" when "index" "Manage #{controller.titlecase}" else controller.titlecase end title end |