You seem to be pretty close. Have you used a tool like Firebug to inspect
the value of the hidden field?
You're probably looking for this:
<%= f.hidden_field :patient_id, :value => @patient_id %>
with @patient_id being set to whatever value you'd like it to be updated to.
On Mon, Jan 18, 2010 a
Hi Gurus,
I had a form with a collection
<%= f.collection_select :patient_id, Patient.find_main, :id, :namer %>
Where the user selected the :patient_id. I've now reconfigured the
rails app so that the controller for this form is passed :patient_id
in the params hash. I no longer want the user
2 matches
Mail list logo