This project is archived and is in readonly mode.

Remove emulation option from Request
Reported by Arian | October 12th, 2010 @ 11:10 PM | in 2.0 (closed)
We should remove the emulation option or set it to false by default in 2.0.
If you want to do a HEAD/PUT/DELETE Request you have to set the emulation explicitly to false, otherwise it won't work as expected, and add _method=HEAD to the query string.
Comments and changes to this ticket
-
Christoph Pojer October 13th, 2010 @ 09:36 AM
- State changed from new to open
-
Jan Kassens October 13th, 2010 @ 11:50 AM
Some browsers only support POST and GET. Others also support a few more operations, but not all.
All in all, I think the emulation parameter should stay, since developing for a specific browser (which may support those http verbs) is the exception and this would break out-of-the-box support for Rails.
-
Fábio M. Costa October 19th, 2010 @ 02:31 AM
I disagree with the ticket. As Jan said it's a facility method for rails developers. It's one of those things we should just keep how it is or we will break lots of apps out there.
-
André Cruz March 18th, 2011 @ 06:19 PM
This emulation is not usefull just in rails.
Its also usefull in symfony where the emulation is named _sf_method -
ibolmo January 19th, 2012 @ 09:13 AM
- State changed from open to wontfix
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »