I have a problem with habtm on a single model in rails.
Example: Let us say i have a User model with two roles "Student" and "teacher". User model is common for two roles. Now
Each student can be associated to many teachers
Each teacher can be associated to many students
In rails notation, their should be habtm between teacher and student How this can be achieved with single table.
Thanks, Aashish