Add dynamic menu for Spree Commerce Shop
- Add the following to your Gemfile
gem 'spree_menu', :git => 'git://github.com/rdegan/spree_menu.git'
- Run
bundle install
- To copy and apply migrations run:
rails g spree_menu:install
- add menu helper method in your view:
<%= insert_menu %>
and add menu in the admin section 2. Additional options:
<%= insert_menu(:category => "my_category") %>
displays menu for which the category column, dafault is ""
<%= insert_menu(:class => "your_class", :id => "your_id") %>
set menu class (default listing menu) and id (default header_menu)
Copyright (c) 2012 [Riccardo Degan], released under the New BSD License