diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 319a220..5482a33 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -20,9 +20,7 @@ module ApplicationHelper # def secondary_title return h(@secondary_title) if @secondary_title - params[:action].to_s.capitalize.gsub(/_/) do |x| - $1.capitalize - end + '' end ## diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index 13a69a8..1c326cf 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -6,10 +6,10 @@ <%= stylesheet_link_tag 'application', :media => 'all' %> <%= javascript_include_tag :defaults %> @@ -37,6 +37,7 @@ <%= link_to_unless_current 'Beverage Styles', styles_path -%>
<%= link_to_unless_current 'Browse Breweries', breweries_path -%>
<%= link_to_unless_current 'BarleySodas People', peoples_path -%>
+ <%= link_to_unless_current 'Gallery', galleries_path -%>
<% if has_permission_for_action?(:index, :roles) -%><%= link_to_unless_current 'Roles', roles_path -%>
<% end -%> <% unless logged_in? -%><%= link_to_unless_current 'Login', new_session_path -%><% else -%><%= link_to "Logout #{session[:people_title]}", session_path(:id => session[:people_title]), :method => :delete -%><% end %>