Sha256: c8496ff27a7abccaebf6ce49f28c9792122897f4358ae845b217b50b863812d5

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 Bytes

Contents

SpreeBanner
===================

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


Basic Installation
------------------

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

Example
=======

1. add banner helper method in your view:
<pre>
	<%= insert_banner %>
</pre>
and add banner in the admin section
2. Additional options:
<pre>
	<%= insert_banner(:category => "my_category") %>
</pre>
displays banner for which the category column, dafault is ""
<pre>
	<%= insert_banner(:max => 10) %>
</pre>
limits the number of banner shown to 10 (default 1)
<pre>
	<%= insert_banner(:class => "your_class") %>
</pre>
set banner class (default banner)
<pre>
	<%= insert_banner(:style => "your_container") %>
</pre>
set banner container (default list [possibile: div, p, ...])

Copyright (c) 2012 [Damiano Giacomello], released under the New BSD License

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_banner-1.1.2 README.md
spree_banner-1.1.1 README.md