search for: action_request

Displaying 1 result from an estimated 1 matches for "action_request".

Did you mean: actionrequest
2006 Jun 27
5
Can''t call public application.rb method from ERb template
...enerate 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 But when I go to my initial page, I get undefined method `get_menu_display_style'' for #<#<Class:0x37272b0>:0x3727220> I''m confused. I f...