[email protected] wrote:
> Hey Rick,
> 
> First of all, thank you for your reply, it finally works!
> So what did I do?I analyzed the stack trace and concluded that the
> problem was situated in the cart.rb
> At line 13:
> 
>       @items << CartItem.new(product)
> 
> It could not assign a new product to the CartItem model so I looked at
> the cart_item.rb:
> The "initialize" - which stands for constructor in Ruby I guess - was
> spelled wrong and that was my problem! Now it seems to work properly.

Ok! And

Well! And if this line and listed all above is present, but the error 
remains?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to