Just watched DHH''s World of Resources talk and I want to make my application more restful. I have the following models: Student Course CourseInstance Enrollment Students can enroll in a specific course instance. For example, Biology in the second semester of 2006. What I''d like to do is list all students who have ever taken a course. I don''t want to create another database table for graduates of a course--that information is all in the enrollments table. A graduate is someone who was enrolled in a course and passed. So far, this is what I''ve come up with: Solution 1: Create a model called Graduate: class Graduate < ActiveRecord::Base belongs_to :enrollment #???? belongs_to :graduate, :class_name => "Student" #???? end Solution 2: Just use the enrollments model and filter by date/pass|fail in the view. Does either one seem more right? If solution one is, how can I set up relationships. -- 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 -~----------~----~----~----~------~----~------~--~---