kaeptnhaddock
2007-Dec-30 23:03 UTC
wanted: user-interface for many to many/habtm join operations
Dear group I''m on my first RoR project, and so far things are going fine. But now I''d like to achieve a simple m2m-join, with users and groups (--> a join table groups_users). I''d like to achieve a view/user interface with two lists, one with the users already assigned to a group, one with the users not yet assigned, and there should be buttons to move users from one list to the other. Pretty much a standard-thing for a many-to-many join table, it seems to me. The basic concept of join tables in RoR is clear to me, but I''m not good enough yet to just go ahead and code my own user-interface just yet. I''ve been googling for hours now (boy, aren''t there ever many rails-blogs out there), and couldn''t find a single tutorial/reference, where it is explained, how I could achieve this kind of controller- logic/user interface. All I''ve found is a habtm-tutorial with check- boxes. Could someone please point me to a good documentation? my tired eyes would appreciate it very much haddock --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jan Luehr
2007-Dec-31 10:11 UTC
Re: wanted: user-interface for many to many/habtm join operations
Hello, Am Montag, 31. Dezember 2007 schrieb kaeptnhaddock:> Dear group > I''m on my first RoR project, and so far things are going fine. But > now I''d like to achieve a simple m2m-join, with users and groups (--> > a join table groups_users). I''d like to achieve a view/user interface > with two lists, one with the users already assigned to a group, one > with the users not yet assigned, and there should be buttons to move > users from one list to the other. Pretty much a standard-thing for a > many-to-many join table, it seems to me. > > The basic concept of join tables in RoR is clear to me, but I''m not > good enough yet to just go ahead and code my own user-interface just > yet. I''ve been googling for hours now (boy, aren''t there ever many > rails-blogs out there), and couldn''t find a single tutorial/reference, > where it is explained, how I could achieve this kind of controller- > logic/user interface. All I''ve found is a habtm-tutorial with check- > boxes. Could someone please point me to a good documentation? > > my tired eyes would appreciate it very much > haddockpersonally I, suggest taking a look at http://www.railscasts.com/episodes/73 http://www.railscasts.com/episodes/74 http://www.railscasts.com/episodes/75 although it''s quite complex and a little bit oversized, it might fit your needs. Keep smiling yanosz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
kaeptnhaddock
2007-Dec-31 11:08 UTC
Re: wanted: user-interface for many to many/habtm join operations
Thanks, yanosz, I''ll take a look --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---