codeplant / simple-navigation

A ruby gem for creating navigations (with multiple levels) for your Rails, Sinatra or Padrino applications. Render your navigation as html list, link list or breadcrumbs.
http://simple-navigation-demo.codeplant.ch/
MIT License
885 stars 136 forks source link

how to change the "selected" class name? #181

Closed rubytastic closed 9 years ago

rubytastic commented 9 years ago

I could not find anything in the documentation regarding on how to change the 'selected' classname. My goal is change it from 'selcted' to 'active' the documentation only lists it can be changed in the config file but no mention how.

Could anyone please add a documentation entry on how to do this? kind regards

simonc commented 9 years ago

Hi @rubytastic,

It's not in the readme but when you use the generator it's present in the comments of the generated file https://github.com/codeplant/simple-navigation/blob/master/generators/navigation_config/templates/config/navigation.rb#L9-L10

But you're right, it should be present in the doc as well. Could you add it in the wiki in a way that makes sense to someone looking for this the same way you did? :)

Thanks!

andi commented 9 years ago

@rubytastic maybe you could add an entry in the FAQs? https://github.com/codeplant/simple-navigation/wiki/FAQ. Thanks