> StoreController#add_to_cart
> -- doesn't expect any methods, but this is called by the Rails framework 
> as
> an action, and Rails doesn't pass any arguments to the action methods

> Cart#add_product
> -- expects 1 argument, you're calling it with 1 argument in
> StoreController#add_to_cart

> CartItem#new
> -- calls CartItem#initialize with however many arguments it was passed
> -- is called with 1 argument in Cart#add_product

> CartItem#initialze
> -- expects 0 arguments, you passed 1 argument in via CartItem#new


I'm not really sure what do do with that -- what should I change? Are 
you saying only my CartItem#initialze is wrong?
-- 
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to