I am a newbie to Ruby on Rails.why is the update action of a RESTful route in Rails is mapped to two HTTP verbs i.e, PATCH and PUT?
PATCH /articles/:id(.:format) articles#update
PUT /articles/:id(.:format) articles#update
Which Method among the two is called when I update a resource(general CRUD )?
patch
is prefered when you want to update partial resource.put
- update complete resource representation. – Stimson