>
>>> PS. Why are you writing product.price=?
>> i belive it is same with product.price * quantity
>> to show the sum of all products inside my cart
>
> Logic, logic, logic.
>
>  product - is a stand alone instance or One product. Why Would it ever
> have the multiplied price with 'quantity' ?.
>
>
> I remember many years ago I read the beginner's book "Agile Web
> Development with Rails", is that example from it? I think you missed
> something.
thank very much for the effort yes this is from the book agile web
development with rails sorry about it im just starting to learn ruby on
rails, uhm i didnt miss anything its just other snippets in the book is 
not properly working :(

-- 
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