I have what seems like simple, working code:
<form action="save_dh_options" method="post">
<fieldset>
<legend>DH Work Reports</legend>
<p>Would you like to fill a work report?</p>
<p><%= radio_button("user", "enable_report",
"yes") %><label
for="yes"> Yes</label><br />
<%= radio_button("user", "enable_report",
"no") %><label for="no">
No</label><br /></p>
</fieldset>
<p><input type="submit" name="save"
value="Save Changes" class="button"
/></p>
</form>
The radio_button command is linked to the field user.enable_report,
which is a simple enum("yes", "no"). Field. When I click the
submit
button the data is saved just fine to the database, but the radio
buttons do not reflect the changes. They''re always set to
"Yes". Can
anyone tell what I''m doing wrong?
--
Posted via http://www.ruby-forum.com/.