DEV Community

loading...

Discussion on: Explain the difference between PATCH and PUT Like I'm Five

Collapse
nestedsoftware profile image
Nested Software

I found this piece of information regarding Rails specifically: weblog.rubyonrails.org/2012/2/26/e.... It sounds as though Rails uses patch as the default verb now for update semantics...

Thread Thread
sudiukil profile image
Quentin Sonrel Author

In any case, when you use Rails to generate a controller (or scaffold) you see that it will route PUT and PATCH requests to the same controller anyway. This can be confirmed by trying to send a PUT request with only some of the parameters, it will work the same way it would have if you used a PATCH request.