Hee people, I have the following problem: I have the following tables: groups: t.string :title rights: t.integer :group_id t.integer :menu_id t.boolean :see t.boolean :edit menus: t.string :title when you create a group you should get a list of menu items where you can select if the persons in the group should be able to edit or see a particulary item. Does anybody know how This would be possible (or point me in the right direction ? ). Thanxs !
on 2009-01-09 16:44
on 2009-01-09 16:52
To make it a bit more clear: in my form (for edit and new) I have the following: <% for menu in Menu.find(:all) %> <tr> <td><%= check_box_tag "group[menu_ids]", menu.id, @group.menus.include?(menu) %></td> <td><%= menu.title %></td> </tr> <% end %> But this is not for what i would like ! (if it is even possible :P )