SpreeBanner =================== Add banner for Spree Commerce Shop [compatible with Amazon S3] Basic Installation ------------------ 1. Add the following to your Gemfile
gem 'spree_banner', '~> 1.0.8'2. Run `bundle install` 3. To copy and apply migrations run:
rails g spree_banner:installExample ======= 1. add banner helper method in your view:
<%= insert_banner %>and add banner in the admin section 2. Additional options:
<%= insert_banner(:category => "my_category") %>displays banner for which the category column, dafault is ""
<%= insert_banner(:max => 10) %>limits the number of banner shown to 10 (default 1)
<%= insert_banner(:class => "your_class") %>set banner class (default banner)
<%= insert_banner(:style => "your_container") %>set banner container (default list [possibile: div, p, ...]) Copyright (c) 2012 [Damiano Giacomello], released under the New BSD License