An ActiveRecord::RecordInvalid occurred in gateways#update:

An ActiveRecord::RecordInvalid occurred in gateways#update:

 Validation failed: Phone is the wrong length (should be 10 characters)
 app/controllers/gateways_controller.rb:192:in `update'

------------------------------
Request:
-------------------------------

 * URL        : https://www.bikelink.org/gateways/168
 * HTTP Method: PUT
 * IP address : 46.227.11.68
 * Parameters : {"utf8"=>"✓", "_method"=>"put", "authenticity_token"=>"RTifyfjJYkFtqRvxvGgCqX7l7+qMRVckxVikplfZCCwTJ0Nh7uORGcD7PrR3eOIKibJ9QEtlgkZ0u2VhTOkE8g==", "gateway"=>{"name"=>"SMRTLK02", "location_id"=>"612", "location_ui_node_id"=>"", "password"=>"[FILTERED]", "wakeup_time_offset"=>"1440", "technicians_gateway"=>"0", "deployed"=>"0", "decommissioned"=>"0", "details"=>""}, "controller"=>"gateways", "action"=>"update", "id"=>"168"}
 * Timestamp  : 2021-03-22 13:17:06 UTC
 * Server : www-3.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 1331

-------------------------------
Session:
-------------------------------

 * session id: [FILTERED]
 * data: {"session_id"=>"7a112e931aff8cbc1cf74101b7a5da68",
  "warden.user.person.key"=>[[3142], "UqiUAY8xyiftXkpAfojn"],
  "_csrf_token"=>"PWhLwVDFoOwpuL/SBWlBGOsz7WlWbmkUAlzkwwexqe4="}

-------------------------------
Backtrace:
-------------------------------

 app/controllers/gateways_controller.rb:192:in `update'
Znovu načíst