I observed that resource deletion fails in rails 3 without
Why? I have created a simple rails 3 application and tried deleting a
Absolutely no custom code/changes.
I have put an example on github: firstname.lastname@example.org:anexiole/rails-
The only things I did were:
1) create the project
2) rails generate scaffold Guitar name:string
3) rake db:migrate
4) script/rails server
5) Go to localhost:3000/guitars and create a new entry
7) click on "Destroy" . The "show" action gets called instead
link using data-method, data-confirm, etc. All that relies on
instead of a DELETE request. So it doesn't work because YOU have
You can use pure HTML to do the same thing by creating your own form
anyway and don't rely on what Rails provides you. But I don't know what
are you trying to build. I can think of very few web apps that wouldn't
When I build web apps, accessibility is a factor I consider.
One of the points with accessibility is to have the website still
function when a user accesses it from a browser that does not have
1) users who do have very old computers and browsers without
2) users who are using screen readers (especially blind users)
I'm quite dissappointed in the sense that rails 3 is now having such
form with method="DELETE" and a button for deletion.
Would there be a better way?