#3498 - locations#show (NoMethodError) "undefined method `id' for nil:NilClass"

A NoMethodError occurred in locations#show:

 undefined method `id' for nil:NilClass
 app/models/error_message.rb:13:in `block in <class:ErrorMessage>'


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

 * URL        : https://www.bikelink.org/locations/security_alerts
 * HTTP Method: GET
 * IP address : 91.139.77.174
 * Parameters : {"controller"=>"locations", "action"=>"show", "id"=>"security_alerts"}
 * Timestamp  : 2023-10-14 18:37:28 UTC
 * Server : www-8.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 935299

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

 * session id: [FILTERED]
 * data: {"session_id"=>"f37d06708b5bd6df8494cca3aaf82fbe",
  "warden.user.person.key"=>[[29434], "g96J_1sBQzz1Dzgu4K3D"],
  "_csrf_token"=>"m/IpEtBKgYkIKdSBzeZzsL6BRN+4xx4+ZOhubF3+Y8Q="}

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

 app/models/error_message.rb:13:in `block in <class:ErrorMessage>'
 app/controllers/locations_controller.rb:126:in `show'
 app/controllers/application_controller.rb:45:in `process_action'
Znovu načítať