Take the 2-minute tour ×

How does unobtrusive delete work if JavaScript is turned off?

It seems like you just get a link to the record, given that data-method='delete' is ignored. I guess that's the intention, it's certainly quick and easy for the developer, but if that's the case, it doesn't really stack up with what the user would expect if they click a "delete" link.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

There is really an excellent blog post covering just this.

share|improve this answer
Thanks, a little effort to set up a separate page for all cases, but I might do a variant with an in-page link to a delete button. Mainly, I'm pleased to get confirmation this really is an issue. –  mahemoff Dec 12 '11 at 20:01

Try adding ?_method=delete to your delete links. Completely untested code:

<%= link_to "Delete", record_path(@record, :_method => "delete") %>
share|improve this answer
Tried it, but the _method was ignored, it just shows the record as before. –  mahemoff Dec 12 '11 at 19:58
Nope, doesn't work GET requests. –  Wizard of Ogz Dec 13 '11 at 14:41

Your Answer


