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 ! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 ) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---