Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 995 Bytes

README.md

File metadata and controls

46 lines (39 loc) · 995 Bytes

SpreeBanner

Add banner for Spree Commerce Shop [compatible with Amazon S3]

Basic Installation

  1. Add the following to your Gemfile
  gem 'spree_banner', '~> 1.1.1'
  1. Run bundle install
  2. To copy and apply migrations run:
	rails g spree_banner:install

Example

  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