pabloz wrote:>
> Hi
>
> I have a simple shopping cart. The whole cart is in a form so i can
> update the quantity, this works fine. How should i make the
> "delete_item" to work? I know i shouldn''t use normal
links, and i cant
> have nested forms so i cant use button_to.
> The only solution is multiple submit buttons. How can they tell which
> item to delete?(how to pass the id of the product). I am guessing by
> hidden fields or smth but still cant figure this out.
Hi,
for delete_item,
do u want link to click or button .
if u provide the code,
i will definitely help u...
Regards,
Srinivas Avasarala..
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---