Restfull links with delete method


I have Ruby on Rails application with restfull links. I’m trying to
write code with link_to helper, delete method and confirmation like

link_to image_tag(’/images/cross.png’),
cancel_friend_path(, :title =>
t(:button_cancel_friendship), :confirm =>
t(‘friends.cancel_friendship_confirmation’), :method => :delete

Everything is ok in this browsers: chrome, firefox, opera. But in
Internet Explorer 7 link doesn’t works - I think, that IE doesn’t
support delete method. I have solved this problem, when I used
button_to helper instead of link_to. Is there any way, to do this with
link_to helper?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs