Integrating Spree In Rails 3.1 Application

Spree is a complete open source e-commerce solution built with Ruby on Rails. It was originally developed by Sean Schofield and is now maintained by a dedicated core team. You can find out more by visiting the Spree e-commerce project page.

It actually consists of several different gems, each of which are maintained in a single repository and documented in a single set of online documentation.

By requiring the Spree gem you automatically require all of the necessary gem dependencies which are:

  • spree_api
  • spree_cmd
  • spree_core
  • spree_dash
  • spree_promo
  • spree_sample

All of the gems are designed to work together to provide a fully functional e-commerce platform. It is also possible, however, to use only the pieces you are interested in. So for example, you could use just the barebones spree_core gem and perhaps combine it with your own custom promotion scheme instead of using spree_promo.

Installation:- It depends on ImageMagick to handle the image processing it does, so we’ll need to install it before we can install Spree. If its not installed already,install it using apt-get(for ubuntu). Once imagemagick is installed,we will create a new rails 3.1 application with the following coSpree In Rails 3.1mmand from terminal. e.g – rails new gps -d mysql (-d mysql specifies that we are going to use mysql as our database)

To install it and all its dependencies, we need to add it in our gemfile. My gemfile looks like this:- source ‘’

gem ‘rails’, ‘3.1.3’

Bundle edge Rails instead:

gem ‘rails’, :git => ‘git://’

gem ‘capistrano’ gem ‘mysql2’ gem ‘therubyracer’ gem ‘paperclip’, “~> 2.3” gem ‘tinymce-rails’

Gems used only for assets and not required

in production environments by default.

group :assets do gem ‘sass-rails’, ‘~> 3.1.5’ gem ‘coffee-rails’, ‘~> 3.1.1’ gem ‘uglifier’, ‘>= 1.0.3’ end

gem ‘jquery-rails’

Get in touch with us.

Leave a Comment

Your email address will not be published. Required fields are marked *