#412 ✓resolved
Xavier Noria

make really clear Rails handles PUT and DELETE

Reported by Xavier Noria | August 16th, 2010 @ 06:44 PM | in The Rails 3 Way

Section 3.5.1 explains the _method hack. I think this section could leave the user wondering whether routing with real PUT and DELETE methods works. In particular it says

"A PUT or DELETE request, in the context of REST in Rails, is actually a POST request with a hidden field called _method set to either “put” or “delete”."

Which is not really true.

May I suggest adding a little bridge with the previous section? Something in the line of "We have just seen how Rails routes PUT and DELETE requests. HTTP clients are able to use said verbs, but forms in browsers can't be submitted using them. Rails provides a hack for that ...".

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Tags

Referenced by

Pages