Products engine for Refinery CMS allows you to display translated products.
This version of refinerycms-products
supports Refinery 3.x and Rails 4.1+.
Open up your Gemfile
and add at the bottom this line:
gem 'refinerycms-products', github: 'bisscomm/refinerycms-products', branch: 'master'
Now, run bundle install
Next, to install the products plugin run:
rails generate refinery:products
Run database migrations:
rake db:migrate
Finally seed your database and you're done.
rake db:seed
Enable page images for this engine in your initializer file
# config/initializers/refinery/page_images.rb
config.enable_for = [
{:model=>"Refinery::Page", :tab=>"Refinery::Pages::Tab"},
{:model=>"Refinery::Blog::Post", :tab=>"Refinery::Blog::Tab"},
{:model=>"Refinery::Products::Product", :tab=>"Refinery::Products::Tab"}
]
The version of Refinery to develop this engine against is defined in the gemspec. To override the version of refinery to develop against, edit the project Gemfile to point to a local path containing a clone of refinerycms.
Generate the dummy application to test against
$ bundle exec rake refinery:testing:dummy_app
Run the test suite with Guard
$ bundle exec guard start
Or just with rake spec
$ bundle exec rake spec