Link_to_remote question

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 A.
sterling.anderson [at] gmail.com
http://sterlinganderson.net/

yep

just use the :confirm option

link_to_remote “delete”, :url => {…}, :confirm => “Are you sure?”