[Rails] link_to_remote question

Chris Hall
Thu, 17 Aug 2006 20:47:40 -0000

yep

just use the :confirm option

link_to_remote "delete", :url => {...}, :confirm => "Are
you sure?"

On 8/17/06, Sterling Anderson <sterling.anderson@gmail.com>
wrote:
> I''m using link_to_remote to call a method that deletes an item
>
> <%= link_to_remote " [delete]", :url => { :controller =>
''user_admin'',
>                                             :action =>
''employee_type_delete'',
>                                             :id => employee_type.id
>                                              } %>
>
> I''d like to have a confirm dialog popup like the plain old link_to
> call allows. Is there any way to do this with link_to_remote?
>
>
> --
> Sterling Anderson
> sterling.anderson [at] gmail.com
> http://sterlinganderson.net/
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>