Module: SimpleNavigation::ControllerMethods::InstanceMethods
- Defined in:
- lib/simple_navigation/controller_methods.rb
Instance Method Summary collapse
-
#current_navigation(primary_navigation, sub_navigation = nil) ⇒ Object
Sets the active navigation.
Instance Method Details
#current_navigation(primary_navigation, sub_navigation = nil) ⇒ Object
Sets the active navigation. Call this method in any action to override the controller-wide active navigation specified by navigation.
The specified symbols must match the keys for your navigation items in your config/navigation.rb file.
68 69 70 71 |
# File 'lib/simple_navigation/controller_methods.rb', line 68 def (, =nil) @current_primary_navigation = @current_secondary_navigation = end |