> From: Craig White <craigwhite@azapple.com>
> Subject: [Rails] passing a value in a hidden field inside a form
> To: rails@lists.rubyonrails.org
> Mesdosage-ID: <1149428769.713.5.camel@lin-workstation.azapple.com>
> Content-Type: text/plain
>
> should be trivial but I can''t figure this out from api
>
> <%= hidden_field ''certifications'',
''personnel_id'', {value > #{@personnel.id}} %>
>
> I want to pass the value of ''id'' field in my form to the
> certifications
> controller as personnel_id
Not tried it myself in exactly the same scenario, but I had a similar
problem with normal text fields. Solved it by using the following syntax
<%= hidden_field ''certifications'',
''personnel_id'', @personnel.id %>
Hope that does the trick
Bharat