Replaced PATCH method with PUT method in routes.rb file