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?
Thanks in advance
Dwija
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---