Skip to content

DriesS/spree_banner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Create a banner for Spree

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 95.4%
  • CSS 4.0%
  • JavaScript 0.6%