Displaying 1 result from an estimated 1 matches for "get_menu_display_style".
2006 Jun 27
5
Can''t call public application.rb method from ERb template
All,
I have a left navigation partial that I want to dynamically generate CSS
classes for based on the current controller action.
In my ERb template, I have
<DIV class="<%= get_menu_display_style(''login_form'') %>">
In application.rb, I have the method get_menu_display_style defined as:
public
def get_menu_display_style(action_requested)
action_name.eql(action_requested) ? ''left_nav_button_selected'' :
''left_nav_button''
end...