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/ _______________________________________________ HTML-FormFu mailing list [email protected] http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
