You can use it https://github.com/shoponrails/shop_on_rails
Installation: https://gist.github.com/greendog/4985240


2013/10/8 slavix <mikerin.slava@gmail.com>
Hello,
I am trying to integrate refinerycms and spree in one Rails 4.0 app.

I followed instructions from
https://github.com/adrianmacneil/spree-refinery-authentication

and having a bit of a problem running migrations after adding spree to my
Gemfile.

Bundle installs fine. But when I run

rake db:migrate
...
== SpreeOneTwo: migrated (0.0380s)
===========================================

rake aborted!
An error has occurred, this and all later migrations canceled:

undefined method `[]' for
nil:NilClass/home/slava/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-9f5ec21147d5/activerecord/lib/active_record/attribute_methods/read.rb:86:in
`block in read_attribute'
Enter code here...











*My gemfile*



source 'https://rubygems.org'

ruby '2.0.0'

gem 'rails', '~> 4.0.0', github: 'rails/rails', branch: '4-0-stable'


gem 'pg'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# See https://github.com/sstephenson/execjs#readme for more supported
runtimes
gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read
more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'


# For Heroku
group :production do
# Fog allows you to use S3 assets (added for Heroku)
gem 'fog'


gem 'rails_12factor'
gem 'rails_stdout_logging'
gem 'rack-cache'
end

group :development, :test do
gem 'sqlite3'
# gem 'pg'
gem 'debugger'

end


group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end



gem 'refinerycms', github: 'refinery/refinerycms', branch: 'master'
gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n', branch:
'master'

gem 'friendly_id', github: 'norman/friendly_id', branch: 'master'
gem 'friendly_id-globalize', github: 'norman/friendly_id-globalize',branch
: 'master'
gem 'quiet_assets'

# Add support for refinerycms-acts-as-indexed
gem 'refinerycms-acts-as-indexed', github:
'refinery/refinerycms-acts-as-indexed'

gem 'protected_attributes'
gem 'seo_meta', github: 'parndt/seo_meta', branch: 'master'

gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4'
gem 'paper_trail', github: 'airblade/paper_trail', branch: 'master'
gem 'awesome_nested_set', github: 'collectiveidea/awesome_nested_set',branch
: 'master'




# spree
# gem 'spree', :git => 'https://github.com/spree/spree.git', :branch =>
'2-1-stable'
gem 'spree', github: 'spree/spree', branch: '2-1-stable'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '2-1-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch:
'2-1-stable'

# gem 'spree-refinerycms-authentication', :git => 'git://
github.com/adrianmacneil/spree-refinery-authentication.git'
gem 'spree-refinerycms-authentication', :path =>
'../spree-refinery-authentication'

gem 'spree_bootstrap', :path => '../spree_bootstrap/'
# gem 'spree_bootstrap', github: 'slavix/spree_bootstrap', branch:
'2-1-stable'




Search Discussions

  • Slava Mikerin at Oct 8, 2013 at 9:45 pm
    Thanks. Is shoponrails a mix of spree and refinerycms? is it on rails 4?

    On Tue, Oct 8, 2013 at 2:30 PM, Alexander Negoda wrote:

    You can use it https://github.com/shoponrails/shop_on_rails
    Installation: https://gist.github.com/greendog/4985240


    2013/10/8 slavix <mikerin.slava@gmail.com>
    Hello,
    I am trying to integrate refinerycms and spree in one Rails 4.0 app.

    I followed instructions from
    https://github.com/adrianmacneil/spree-refinery-authentication

    and having a bit of a problem running migrations after adding spree to my
    Gemfile.

    Bundle installs fine. But when I run

    rake db:migrate
    ...
    == SpreeOneTwo: migrated (0.0380s)
    ===========================================

    rake aborted!
    An error has occurred, this and all later migrations canceled:

    undefined method `[]' for
    nil:NilClass/home/slava/.rvm/gems/ruby-2.0.0-p247/bundler/gems/rails-9f5ec21147d5/activerecord/lib/active_record/attribute_methods/read.rb:86:in
    `block in read_attribute'
    Enter code here...











    *My gemfile*



    source 'https://rubygems.org'

    ruby '2.0.0'

    gem 'rails', '~> 4.0.0', github: 'rails/rails', branch: '4-0-stable'


    gem 'pg'

    # Use SCSS for stylesheets
    gem 'sass-rails', '~> 4.0.0'

    # Use Uglifier as compressor for JavaScript assets
    gem 'uglifier', '>= 1.3.0'

    # Use CoffeeScript for .js.coffee assets and views
    gem 'coffee-rails', '~> 4.0.0'

    # See https://github.com/sstephenson/execjs#readme for more supported
    runtimes
    gem 'therubyracer', platforms: :ruby

    # Use jquery as the JavaScript library
    gem 'jquery-rails'

    # Turbolinks makes following links in your web application faster. Read
    more: https://github.com/rails/turbolinks
    gem 'turbolinks'

    # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
    gem 'jbuilder', '~> 1.2'


    # For Heroku
    group :production do
    # Fog allows you to use S3 assets (added for Heroku)
    gem 'fog'


    gem 'rails_12factor'
    gem 'rails_stdout_logging'
    gem 'rack-cache'
    end

    group :development, :test do
    gem 'sqlite3'
    # gem 'pg'
    gem 'debugger'

    end


    group :doc do
    # bundle exec rake doc:rails generates the API under doc/api.
    gem 'sdoc', require: false
    end



    gem 'refinerycms', github: 'refinery/refinerycms', branch: 'master'
    gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n', branch:
    'master'

    gem 'friendly_id', github: 'norman/friendly_id', branch: 'master'
    gem 'friendly_id-globalize', github: 'norman/friendly_id-globalize',branch
    : 'master'
    gem 'quiet_assets'

    # Add support for refinerycms-acts-as-indexed
    gem 'refinerycms-acts-as-indexed', github:
    'refinery/refinerycms-acts-as-indexed'

    gem 'protected_attributes'
    gem 'seo_meta', github: 'parndt/seo_meta', branch: 'master'

    gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4'
    gem 'paper_trail', github: 'airblade/paper_trail', branch: 'master'
    gem 'awesome_nested_set', github: 'collectiveidea/awesome_nested_set',branch
    : 'master'




    # spree
    # gem 'spree', :git => 'https://github.com/spree/spree.git', :branch =>
    '2-1-stable'
    gem 'spree', github: 'spree/spree', branch: '2-1-stable'
    gem 'spree_gateway', github: 'spree/spree_gateway', branch: '2-1-stable'
    gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch:
    '2-1-stable'

    # gem 'spree-refinerycms-authentication', :git => 'git://
    github.com/adrianmacneil/spree-refinery-authentication.git'
    gem 'spree-refinerycms-authentication', :path =>
    '../spree-refinery-authentication'

    gem 'spree_bootstrap', :path => '../spree_bootstrap/'
    # gem 'spree_bootstrap', github: 'slavix/spree_bootstrap', branch:
    '2-1-stable'




  • Alexander Negoda at Oct 8, 2013 at 10:49 pm
    Thanks. Is shoponrails a mix of spree and refinerycms? is it on rails 4?
    Yes, it's a mix Spree with RefineryCMS + theme engine based on the Liquid (
    https://github.com/Shopify/liquid)
  • Alexander Negoda at Oct 8, 2013 at 10:55 pm
    is it on rails 4?
    Not yet. ShopOnRails uses
    https://github.com/refinery/refinerycms/tree/2-1-stable with rails-3.
    in the near future I'm going to support newer versions Spree + RefineryCMS
    (rails-4)
  • Slava Mikerin at Oct 8, 2013 at 10:58 pm
    I have an almost working setup with rails 4, refinery master, spree
    2-1-stable, spree-refinerycms-authentication
    only have a few problems like the migration error.

    On Tue, Oct 8, 2013 at 3:55 PM, Alexander Negoda wrote:


    is it on rails 4?
    Not yet. ShopOnRails uses
    https://github.com/refinery/refinerycms/tree/2-1-stable with rails-3.
    in the near future I'm going to support newer versions Spree + RefineryCMS
    (rails-4)

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedOct 8, '13 at 9:31p
activeOct 8, '13 at 10:58p
posts5
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Alexander Negoda: 3 posts Slava Mikerin: 2 posts

People

Translate

site design / logo © 2022 Grokbase