On 4/27/07, <b class="gmail_sendername">David Koontz</b> <<a href="mailto:david@koontzfamily.org">david@koontzfamily.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was wondering if there's a way to get a value into the hidden_field<br>tag generated by mv:hidden_field. Currently the value attribute of the<br>html input tag is not being used, could it perhaps become a :value =>
<br>hash on the hidden_input rails helper?<br></blockquote></div><br><br><br>Yes, the mv:hidden_field currently is used to populate the hidden tag using an object and method (like from ActiveRecord). If you want to dynamically set the value from somewhere else, you can use the mv:attr directive instead.
<br><br><input type="hidden" name="foo" value="dummy" mv:attr=":value => #{bar}"/><br><br>Jeff<br>