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
In application.rb, I have the method get_menu_display_style defined as:
action_name.eql(action_requested) ? ‘left_nav_button_selected’ :
But when I go to my initial page, I get
undefined method `get_menu_display_style’ for
I’m confused. I figured that I would have access to the application
controller methods from any ERb template - is this wrong?