spree/spree — Issue #848: Error running 'rails g' after updating spree to the latest version from master
Author: htapal
Created: 2011-12-06 15:34:49+00:00
State: open

I'm running ruby-1.9.3-head with rvm using the latest version of rails (3.1.3). I had originally added just 'gem spree' to my Gemfile to play with spree.

I then wanted to try out the spree_related_products extensions, the latest version for which has a dependency on spree-core 1.0.0.beta so I updated the Gemfile to 'gem spree, :git => 'git://github.com/spree/spree.git'

Once the bundle updated, running 'rails g' throws the following exception:

/Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/activesupport-3.1.3/lib/active_support/inflector/methods.rb:124:in `block in constantize': uninitialized constant RedirectLegacyProductUrl (NameError)
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/activesupport-3.1.3/lib/active_support/inflector/methods.rb:123:in `each'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/activesupport-3.1.3/lib/active_support/inflector/methods.rb:123:in `constantize'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/actionpack-3.1.3/lib/action_dispatch/middleware/stack.rb:24:in `klass'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/actionpack-3.1.3/lib/action_dispatch/middleware/stack.rb:43:in `build'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/actionpack-3.1.3/lib/action_dispatch/middleware/stack.rb:112:in `block in build'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/actionpack-3.1.3/lib/action_dispatch/middleware/stack.rb:112:in `each'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/actionpack-3.1.3/lib/action_dispatch/middleware/stack.rb:112:in `inject'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/actionpack-3.1.3/lib/action_dispatch/middleware/stack.rb:112:in `build'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/engine.rb:447:in `app'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/application/finisher.rb:37:in `block in '
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/htapal/Projects/misc/awardexpress/config/environment.rb:5:in `'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/application.rb:83:in `require_environment!'
from /Users/htapal/.rvm/gems/ruby-1.9.3-head@awardexpress/gems/railties-3.1.3/lib/rails/commands.rb:22:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'