Duane
2006-Mar-17 15:59 UTC
[Rails] Design / Pattern / Scaffold for has-and-belongs-to-many ?
Is there a standard practice for providing a UI into HBTM relationships? I have a model User, and a model Training, and I need to manage both relationships -- show me all the people that have training X, but also show me all trainings user U has. And, of course, "Lookup this user and then add/remove trainings for this person" or "Lookup this training and add/remove users". Before I go creating something from scratch I thought I''d check and see if there''s a standard way that people have been doing it. Thanks! -- Posted via http://www.ruby-forum.com/.
Francois Beausoleil
2006-Mar-17 19:10 UTC
[Rails] Design / Pattern / Scaffold for has-and-belongs-to-many ?
Hi ! 2006/3/17, Duane <dmorin@gmail.com>:> Before I go creating something from scratch I thought I''d check and see > if there''s a standard way that people have been doing it.Take a look at the habtm_helper plugin - it might just be what you want: https://opensvn.csie.org/traccgi/habtm_helper_plugin/trac.cgi/ Announcement here: http://blog.teksol.info/articles/2005/11/25/habtm-helper-plugin-version-0-2-0 Bye ! -- Fran?ois Beausoleil http://blog.teksol.info/