Forum: Ruby on Rails Nuby: HABTM and drag-and-drop views

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0454b2d73007699b409d4d7a2bcf0b5f?d=identicon&s=25 oom tuinstoel (Guest)
on 2006-03-25 14:25
I have two tables that have a HABTM relationship: Teacher
has_and_belongs_to_many Groups, and Group has_and_belongs_to_many
Teachers.

This is what I want: select a Teacher, and then drag Groups from one box
to another to assign them to the teacher. Or, select a group, and drag
and drop Teachers to assign them to groups. All using AJAX, (off
course).

Only problem is, I don't know even know where to start. Should I create
a controller, a scaffold, or what-have-you??? Please help me!
C4a0d49327c78017de7194d4e543d2dd?d=identicon&s=25 Joseph Kowalski (Guest)
on 2006-03-26 00:47
(Received via mailing list)
My advice is to learn to crawl before you try to go ride the bike you
have in mind....

Start with something simpler, such as just setting up the teachers
table and it's associated CRUD, then work from there.  You could
generate a scaffold for that, just to get a rough idea how rails likes
to hand data entry, reading, updating and deletion.   Don't worry
about the ajax stuff until you can do it all manually without the
ajax.
This topic is locked and can not be replied to.