So I've written this code in my controller and it doesn't seem to
process my records and I don't know why.
error = nil
@my_cart = @user.shopping_cart
@my_cart_items = @user.shopping_cart.shopping_cart_items
for shopping_cart_item in @my_cart_items
if @quantity > 0
....do stuff
end
end
Is this valid?
--
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
-~----------~----~----~----~------~----~------~--~---