Skip to content
Nikolas edited this page Apr 25, 2019 · 10 revisions

simple-navigation is a ruby gem for creating navigations (with multiple levels) for your Rails (Tested with versions 3.2 up to 5.2), Sinatra or Padrino applications. You can render your navigation as HTML list, link list or breadcrumbs.

To see the gem/plugin in action please visit the online demo.

Upgrade hint for v4.0.0

This release mainly consists of internal refactorings. However, there is a change in how to set HTML attributes of generated list items and links. To set HTML attributes, use the following options in your navigation.rb file:

primary.item :books, 'Books', books_path, html: {class: 'my-li-class'}, link_html: {class: 'my-link-class'}

Please change your config files accordingly.

Table of contents

Ruby/Rails Compliance

The simple-navigation gem is tested against the following versions of Ruby:

  • 2.3.3

and the following versions of Rails:

  • last stable 3.2
  • last stable 4.1
  • last stable 4.2
  • last stable 5.2

Credits

We would like to thank the whole community for the feedback and inspiration. Special thanks goes to the following contributors for providing patches, enhancements, ideas and support.

Please also check out the complete list of contributors.

Clone this wiki locally