Given 3 tables: COURSES, REQUESTS, CLASSROOMS joined properly in the model (hopefully). I want to either: 1) show all courses, but prohibit (onclick) enrollment in a course based on its classroom reaching capacity (static value in table per classroom). Or, 2) do not show courses that have reached their classroom capacity through enrollment. So, I think I have to count all requests for a given course, then show courses whose requestcount is <= classroom.capacity. Can anyone point me in the right direction on how to do this, and/or provide feedback on my logic? I''ll provide more details and code if you might find it useful... Thanks in advance........ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---