New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running 'rails g' after updating spree to the latest version from master #848
Comments
This error would happen if you generated the application initially using:
This inserts lines beginning with To fix this, remove these two lines and try again. |
That did it! Thanks. |
Very fine, thanks!! |
cool |
Helped me as well, thanks |
Hello Iam getting following error, I did not see any above lines in application.rb elm-khan-store/app/helpers/spree/admin/users_helper_decorator.rb:1:in `<top (required)>': uninitialized constant Spree::Admin::UsersHelper (NameError) Thanks |
@ratnamraju: Please open a new issue and provide the info stated in the Contributing Guidelines for this new issue. Thank you. |
Hi @radar thanks for your reply here, and actual thing is now I would like to upgrade the spree from 1.1.1 to 1.3.1 but I am getting above errors. Thanks |
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 <module:Finisher>' 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
<top (required)>' 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
<top (required)>' from script/rails:6:in
require'from script/rails:6:in `
The text was updated successfully, but these errors were encountered: