I am writing an Ajax request form with Ruby on Rails using a collection_select tag that looks like this:
collection_select
<%= collection_select(\"Jobs\", \"cl
You need to use params[:Jobs][:clearance]
params[:Jobs][:clearance]
params is a hash of all the request parameters. But params[:Jobs] is ALSO a hash of all :Jobs parameters. So calling params[:Jobs][:clearance] is calling the [] method on the params[:Jobs] object passing :clearance in as a parameter.
params
params[:Jobs
[]
params[:Jobs]
:clearance