Skip to content

Instantly share code, notes, and snippets.

@yamaaki
Created August 12, 2015 13:58
Show Gist options
  • Save yamaaki/eff4cbdeb9db6559afe3 to your computer and use it in GitHub Desktop.
Save yamaaki/eff4cbdeb9db6559afe3 to your computer and use it in GitHub Desktop.
SimpleNavigation::Configuration.run do |navigation|
navigation.renderer = MaterializeRenderer
navigation.auto_highlight = false
navigation.items do |primary|
primary.item :book_header, '[Book]', '#' do |sub_nav|
sub_nav.item :books, 'Books', books_path, highlights_on: hl(:books)
sub_nav.item :new_book, 'New Book', new_book_path, highlights_on: hl(:new_book)
end
primary.item :welcome, 'Welcome', root_path, highlights_on: hl(:welcome)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment