On May 14, 2007, at 10:30 PM, Rick Schumeyer wrote:> What is the syntax to use :confirm with link_to_remote? This
doesn''t
> work, I''ve tried a few permutations, with no success:
>
> <%= link_to_remote( "X",
> :update => ''address_list'',
> :url => { :controller => ''addresses'',
:action =>
> ''destroy'', :id => address },
> :confirm => true ) %>
>
> The above works fine if I remove the :confirm part.
Try:
:confirm => "Should I really destroy the address #{address}?"
The value is a string that will be shown in an alert box.
-Rob
Rob Biedenharn http://agileconsultingllc.com
Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---