Skip to content

webpulser/rails-commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
= RailsCommerce

RailsCommerce is an extension of Ruby on Rails for e-commerce development 

= Versionning

= Prerequisites

== Plugins
* acts_as_state_machine
* acts_as_tree
* restful_authentication
* will_paginate
* acts_as_commentable
* localized_dates
* jrails
* acts_as_ferret
* sortable_pictures

1) Add the following lines at the end of Rails::Initializers in config/environement.rb :
  config.gem 'mime-types', :lib => 'mime/types'
  config.gem 'desert', :version => '0.5.0', :lib => 'desert'
  config.gem "mbleigh-acts-as-taggable-on", :source => "http://gems.github.com", :lib => "acts-as-taggable-on"
  config.gem "acts_as_ferret", :lib => "acts_as_ferret"
  config.gem "rubyist-aasm", :source => "http://gems.github.com", :lib => 'aasm'
  config.gem 'mislav-will_paginate', :source => "http://gems.github.com", :lib => "will_paginate"
  config.gem 'coupa-acts_as_list', :source => "http://gems.github.com"
  config.gem 'coupa-acts_as_tree', :source => "http://gems.github.com"

2) Run :
  gem install desert
  rake gems:install

3) And install all others plugins (don't forget to read there README) :

  Install restful_authentication :
   git clone git://github.com/technoweenie/restful-authentication.git vendor/plugins/restful_authentication

  Install attachment_fu :
   git clone git://github.com/technoweenie/attachment_fu.git vendor/plugins/attachment_fu

  Install acts_as_commentable :
   ./script/plugin install http://juixe.com/svn/acts_as_commentable

  Install localized_dates :
   ./script/plugin install git://github.com/clemens/localized_dates.git

  Install jrails :
   ./script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails

  Install acts_as_ferret :
   aaf_install
   ./script/ferret_server start

  Install sortable_pictures:
   ./script/plugin install git://github.com/qtousart/sortable_pictures.git

== Initialize
  ./script/generate migration install_rails_commerce_plugin
  -> add "migrate_plugin 'rails_commerce', LAST_MIGRATION" in self.up and "migrate_plugin 'rails_commerce', 0" in self.down

  rake db:migrate;
  rake rails_commerce:fixtures:load FIXTURES=countries,currencies_exchanges_rates,currencies,namables,people;
  rake rails_commerce:generate:rights_and_roles;
  rake rails_commerce:sync;

== update routes.rb
  map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate'

== Examples

= Helpers

== add in application_helper.rb

  include CategoryHelper
  include ProductHelper
  include CartHelper
  include OrderHelper

Powered by [http://www.webpulser.com Webpulser]

Releases

No releases published

Packages

No packages published