Rails 4 has introduced PATCH
requests to be the default request method when doing the (common) partial updates on objects. This is conformal to HTTP standards and a
another solution to override PATCH is the following:
resources :some_resources do
member { patch action: :event }
end
This will result in calling the method event
on the SomeResourceController
when we call this route PATCH /some_resources/:id
or to disable it:
resources :some_resource, except: :update do
member { put action: :update }
end