module SimpleNavigation::ControllerMethods::InstanceMethods

Public Instance Methods

current_navigation(*args) click to toggle source

Sets the active navigation. Call this method in any action to override the controller-wide active navigation specified by navigation.

The specified symbol must match the keys for your navigation items in your config/navigation.rb file.

# File lib/simple_navigation/rails_controller_methods.rb, line 144
def current_navigation(*args)
  @sn_current_navigation_args = args
end