« Back to blog

Ruby on Rails (RoR) nifty-generators nifty:layout + Rails 3.1 bug ; DELETE methods stop working

If you recently installed nifty-generators and are using nifty:layout you may notice that your DELETE methods stopped working. This is due to a change in Rails 3.1 code apparently. You’ll likely note that in app/views/layouts/application.html.erb the line below after your generation of nifty:layout

<%= javascript_include_tag :defaults %>

This needs to be changed to:

<%= javascript_include_tag :application %>

Once that change is in place, you should see successful DELETE methods again. I could be wrong, but in my case, this did the job!