Open garethrees opened 4 years ago
This happens when no described state radio button has been selected before submitting the form.
Had another of these:
An ActionController::ParameterMissing occurred in classifications#create:
param is missing or the value is empty: classification
Did you mean? last_info_request_event_id
commit
authenticity_token
action
app/controllers/concerns/classifiable.rb:50:in `classification_params'
-------------------------------
Request:
-------------------------------
* URL : https://www.whatdotheyknow.com/projects/5/classifications?url_title=enforcement_of_standards_in_priv_94
* HTTP Method: POST
* Parameters : {"utf8"=>"✓", "authenticity_token"=>"REDACTED", "last_info_request_event_id"=>"11437137", "commit"=>"Submit status", "url_title"=>"enforcement_of_standards_in_priv_94", "controller"=>"projects/classifications", "action"=>"create", "project_id"=>"5"}
* Timestamp : 2022-04-12 22:09:05 +0100
* Rails root : /data/vhost/www.whatdotheyknow.com/alaveteli-2022-04-07T14-32-40
-------------------------------
Session:
-------------------------------
* session id: [FILTERED]
* data: {"session_id"=>"REDACTED",
"locale"=>"en",
"_csrf_token"=>"REDACTED",
"remember_me"=>true,
"user_id"=>172456,
"user_login_token"=>"REDACTED",
"post_redirect_token"=>"REDACTED",
"projects"=>
{"5"=>
{"classifiable"=>{"current"=>"836322", "skipped"=>[]},
"extractable"=>{"current"=>"836314", "skipped"=>[]}}}}
-------------------------------
Backtrace:
-------------------------------
app/controllers/concerns/classifiable.rb:50:in `classification_params'
app/controllers/concerns/classifiable.rb:65:in `message_required_for_state?'
app/controllers/application_controller.rb:111:in `record_memory'
lib/deeply_nested_params.rb:15:in `call'
lib/strip_empty_sessions.rb:14:in `call'