Method: ActiveNavigation::Helpers#nav_active

Defined in:
lib/active_navigation/helpers.rb


12
13
14
15
16
# File 'lib/active_navigation/helpers.rb', line 12

def nav_active(menu, *args)
  default_options = { :class => "nav", :class_for_active => "active", :items_classify => false }
  options = args.extract_options!.reverse_merge!(default_options)
  render :partial => "navigation/nav_active", :locals => { :menu => menu, :options => options}
end