El Monday 12 January 2009 11:19:22 DJ escribió: > Hi > Groups > I am trying to show a group of check boxes along with > their boolean values for a HABTM relationship say > > has_and_belongs_to_many :roles > has_and_belongs_to_many :users > > so the roles table are -> > id name type > 1 create .. > 2 read .. > 3 update .. > > users tables-> > id name email > 1 admin ... > 2 harry ... > > roles_user table-> > > role_id user_id > 1 1 > 1 2 > 2 2 > > What i am trying is to show the check boxes for every role name along > with their boolean values(checked or not) in each users update form. > I have tried with name_form_column in user helper function but could > not get the desired result. Are their any better way? >
Have you tried to set :select to form_ui? config.columns[:roles].form_ui = :select -- Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::. Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
