undefined method `user_id=' for #<Spree::Address:0xb4e8b2dc>

26 views
Skip to first unread message

Nikolay

unread,
Dec 16, 2012, 9:19:11 AM12/16/12
to rubyonra...@googlegroups.com

After entering data in http://localhost:3000/checkout/update/address form i getting the following error:


NoMethodError in Spree::CheckoutController#update

undefined method `user_id=' for #<Spree::Address:0xb4e8b2dc>

error chunk of Development.log
https://gist.github.com/4307695

Nikolay

unread,
Dec 16, 2012, 9:27:46 AM12/16/12
to rubyonra...@googlegroups.com

Colin Law

unread,
Dec 16, 2012, 9:54:42 AM12/16/12
to rubyonra...@googlegroups.com
On 16 December 2012 14:19, Nikolay <itsni...@gmail.com> wrote:
> After entering data in http://localhost:3000/checkout/update/address form i
> getting the following error:
>
>
> NoMethodError in Spree::CheckoutController#update
>
> undefined method `user_id=' for #<Spree::Address:0xb4e8b2dc>

Have a look at the Rails Guide on Debugging, it will show you
techniques that can help you to debug the code.

Colin

Sumit Srivastava

unread,
Dec 17, 2012, 4:09:29 AM12/17/12
to rubyonra...@googlegroups.com

Seems like either you haven't run your migration.
Secondly you might be trying to use an attribute which is not delegated to Spree from Address. 
Reply all
Reply to author
Forward
0 new messages