Re: [Rails] passing hidden field data

2010-01-18 Thread Steve Klabnik
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

[Rails] passing hidden field data

2010-01-18 Thread Dudebot
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