Setting the ui_type to :select for the associated column will show a list of checkboxes on new/edit, which sounds like what you're after. No need for custom code to do that!
But if you really do want a drop-down with embedded checkboxes, then it will require some overrides of AS's default behavior... Ryan On Mar 12, 5:11 pm, thoraxe <[email protected]> wrote: > think about doing a custom view and hacking some custom code in, and > look at this article:http://www.petersblog.org/node/1459 > > shouldn't be terribly hard. > > On Mar 12, 4:49 pm, sergio_101 <[email protected]> wrote: > > > i have been using streamlined for some time now, and the very last > > problem that i had turned out to be a show stopper. that being the case, > > i am thinking about changing the existing project over to > > activescaffold. > > > i am sure the answer to this problem is probably easy to find, but i > > want to make absolutely sure that i can do this before i continue. i > > tried looking at the demo site, but the demo site appears to be down.. > > > what i would like to do is: > > > when a model has a :has_many or HABTM relationship, rather than having a > > drop down select box, have a drop down box with checkboxes. > > > the problem we are having is that users who are not familiar with the > > behavior of a multiple select box (using the ctl button to select > > multis) can very easily select one, while deselecting the others, and > > save the record, destorying the rest of the data.. > > > anyone have anything on this? > > > thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
