[html-formfu] Creating options in many_to_many_select
Zbigniew Lukasiak
zzbbyy at gmail.com
Sat Dec 15 20:44:17 GMT 2007
Hi all,
It looks that the ->defaults_from_model method sets the default values
but it does not create the full list of options.
If you add a warn statement at the end of
t/defaults_from_model/many_to_many_select.t to print the resulting
form the output is:
<form action="" method="post">
<fieldset>
<input name="id" type="hidden" value="2" />
<span class="text">
<input name="name" type="text" value="Paul" />
</span>
<span class="select">
<select name="bands" multiple="1">
</select>
</span>
<span class="submit">
<input name="submit" type="submit" />
</span>
</fieldset>
</form>
The SELECT field have no OPTIONS.
Is that a conscious omission - do you think users should fill in the
options themselves or would you welcome a patch?
Cheers,
Zbyszek
http://brudnopis.blogspot.com/
More information about the HTML-FormFu
mailing list