> > > 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? > Probably.
You could always add a parameter to your CartItem#initialize method. I'm not sure that you're heading in the direction you want to be heading, since it appears that CartItem is not derived from ActiveRecord::Base -- it's not tied to a database. You might want to go back and study Rail's ideas regarding models, how they tie to database tables, and how you can initialize them. --wpd --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---