SecretAgents / spree_menu

spree_menu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpreeMenu

Add dynamic menu for Spree Commerce Shop

Basic Installation

  1. Add the following to your Gemfile
  gem 'spree_menu', :git => 'git://github.com/rdegan/spree_menu.git'
  1. Run bundle install
  2. To copy and apply migrations run:
	rails g spree_menu:install

Example

  1. 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

About

spree_menu

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Ruby 78.3%Language:CSS 13.5%Language:JavaScript 8.2%