Add banner for Spree Commerce Shop [compatible with Amazon S3]
- Add the following to your Gemfile
gem 'spree_banner', '~> 1.1.1'
- Run
bundle install
- To copy and apply migrations run:
rails g spree_banner:install
- 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