Rails 3 :method=> :delete doesn't work in Internet Explorer

前端 未结 11 890
天涯浪人
天涯浪人 2020-12-09 00:44

I am going through the rails 3 tutorial at railstutorial.org. I have just created an extremely simple scaffold Users.

The scaffold-generated destroy link does not wo

11条回答
  •  孤城傲影
    2020-12-09 01:09

    In Rails 3.1 with the asset pipeline, all the javascript is in application.js. So, rather than :defaults, you need "application".

    <%= javascript_include_tag "application" %>
    

提交回复
热议问题