#2693 - Validation failed: Phone is the wrong length (should be 10 characters)
An ActiveRecord::RecordInvalid occurred in transit_card#link:
Validation failed: Phone is the wrong length (should be 10 characters)
app/models/person.rb:337:in `assign_card'
-------------------------------
Request:
-------------------------------
* URL : https://bikelink.org/transit_card/link
* HTTP Method: POST
* IP address : 178.255.168.208
* Parameters : {"modern_clipper_to_person_former"=>{"ignore_120"=>"", "clipper_number"=>"789456"}, "commit"=>"Yes, that's correct", "controller"=>"modern/transit_card", "action"=>"link"}
* Timestamp : 2021-08-05 22:49:32 UTC
* Server : www-3.internal.bikelink.org
* Rails root : /var/www/bikelink
* Process: 2952
-------------------------------
Session:
-------------------------------
* session id: [FILTERED]
* data: {"session_id"=>"b30a699fc3ed2862508640d7988cedf3",
"warden.user.person.key"=>[[31351], "mUKWfn3xh4yms737kmxk"],
"_csrf_token"=>"c5wXitWKIgqHQmgZw05D9j8nCMMJGz5Ijm0D8WEHni4="}
-------------------------------
Backtrace:
-------------------------------
app/models/person.rb:337:in `assign_card'
app/models/person.rb:378:in `create_and_assign_card'
app/models/person.rb:505:in `give_card'
app/formers/modern/clipper_to_person_former.rb:9:in `save'
app/controllers/modern/transit_card_controller.rb:29:in `link'
app/controllers/application_controller.rb:146:in `set_current_person'
Znovu načítať