In rails the routes can be created using
resources :vehicals
so, that will create many routes which will produce the basic routes required for the CRUD operation, But I am confused between the 2 routes i.e.
PATCH /vehicals/:id(.:format) vehicals#update
PUT /vehicals/:id(.:format) vehicals#update
please clear which is to use while update.