rails link_to在firefox中创建不需要的确认消息,但在safari中不起作用

时间:2014-01-12 16:40:23

标签: ruby-on-rails ajax ruby-on-rails-4 link-to link-to-remote

我有以下链接:

<%= link_to "", skill_path(skill), :class => "button-delete", :method => :delete,
 :remote => true %>

单击链接时,将显示以下确认弹出窗口:

This web page is being redirected to a new location. Would you like to resend 
 the form data you have typed to the new location?

问题是我从未创建此确认。如果我删除“:remote =&gt; true”,则确认消失。但我需要“:remote =&gt; true”,因为我需要网站的工作方式。此外,如果我单击确定消息“确定”,该消息将再次出现,但不会将我带到实际页面。在safari中,确认没有显示但新页面仍然无法加载。有谁知道如何解决这个问题?

0 个答案:

没有答案