Update method is not working

error :

ActionController::MethodNotAllowed

Only get, put, and delete requests are allowed.