对于添加
的类似问题,有很多答案 //= require jquery
//= require jquery_ujs
到application.js文件。我已经有了这些。我的链接在桌面上完美运行,但是在iPad上,即使链接有data-method =“delete”,服务器仍将其视为GET请求。
在ipad上使这项工作有什么问题?
这是我的代码:
<%= link_to "/things/#{thing.id}", :class => 'cool-thing',
:method => :delete do %>
<img src=awesome.png>
<% end %>