Hi there
../view/trainings:
in my _form.html.erb I use a collection_select to get the id of a
worker from Worker-table.
<%= collection_select(:worker, :id, @workers, :id, :first_name,
options ={:prompt => "Select a worker"}, :class =>"worker") %></div>
The collection select shows correct, but there will be no entry in the
worker_id field of the new entry.
If I use a text_field to pass the number it works:
<%= f.label :worker_id %><br />
<%= f.text_field :worker_id %>
Br
rogi