A Spree extension for giveaways.
Active prizes will be displayed on the /prizes
route of the spree application.
Adds a 'Prizes' tab to the spree admin panel.
Add spree_prize to your Gemfile:
gem 'spree_prize'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_prize:install
** Add yield :head
and yield :meta
statements in your application layout
<head>
tag. **
First bundle your dependencies, then run rake
. rake
will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app
.
bundle
bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_prize/factories'