Because if I use Fiddler to monitor it, it is:
CRUD       Method  Path        With              Idempotent?   action
----       ------  ----        ----              -----------   ------
Create     POST    /foos/                        No            create
Retrieve   GET     /foos/:id                     Yes           show
Update     POST    /foos/:id   _method=put       Yes           update
Destroy    POST    /foos/:id   _method=delete    Yes           destroy
so PUT and DELETE (as HTTP verb) are not actually used.  But why do Rails books and references always say it is PUT and DELETE?
Because web browsers have no interface to generate PUT or DELETE requests.
Of course, clients that you program have enough flexibility to use PUT and DELETE as intended, but browsers can really only use GET and POST.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With