Rails 3.2.7 and Spree 1.1.2. When I try to access CART, there is debug info show that “undefined method `password_salt=' ..”

StackOverflow https://stackoverflow.com//questions/11688325

Question

I installed rails on Windows7 using RailsInstaller (v2.1.0). I found the original rails was v3.2.1. After that, I "gem install spree". It seems the installation upgrades rails to v3.2.7. I mentioned that because before yesterday it was just 3.2.6. Every thing goes well under rails 3.2.6, but if I "spree install" a rails 3.2.7 app, I failed to access the default store's Cart. And get the error like this:

NoMethodError in Spree::OrdersController#edit

undefined method `password_salt=' for #<Spree::User:0x68438d0>

As I checking the database, yes, there is no "password_salt" but only "salt" in spree_users table.

Is there anyone else encountered this problem? I had taken almost half day on this problem. Did I miss something in the Spree path?

Thanks very much.

Was it helpful?

Solution

I think I had the exact same issue before, see if specifying spree gem version (assuming is 1.1.2) in the Gemfile and then running bundle update works

#Gemfile
gem 'spree', '1.1.2'

and later run

bundle update

See if it works!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top