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'
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'