Thanks. I tried this and got a type mismatch error on submit "<model name> expected, got Array". In addition to adding the <input-many ... / > to the view, are their other steps to be completed? I don't see much on this in the documentation.
On May 28, 8:34 am, Matt Jones <[email protected]> wrote: > On May 27, 2010, at 8:32 PM, Ronbo wrote: > > > > > Hi, > > > I am just beginning to experiment with hobo and have only very limited > > experience with Rails. The answer to the following question may be > > obvious or may not exist; I can't yet judge and have not found an > > answer in the documentation or forums. Here goes: > > > I am using :accessible => true to allow users to make multiple > > selections from a picklist on a form. When a choice is added, I would > > like a text field to be presented to the user in addition to their > > selection, so that they can add a comment about that choice. If > > a :accessible => true selection is later removed, the comment would be > > auto-deleted with it. > > > Can anyone point me in the right direction to get something like this > > working? > > I'm guessing you'll be storing the comment on the join model. In that > case, what you really want the form to have is an input-many for that > join model, which should (typically) get you a dropdown to select a > model + a comment field. > > --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
