You're on the right track - the :through part comes in when you want to go directly from Post to User. The following associations will do what you're looking for:
- on Post has_many :alert_users, :through => :alerts, :source => :user - on User has_many :alert_posts, :through => :alerts, :source => :post (you may need some extra :class_name noise, but I think this will work) Then, given a post @post, you can get all the users receiving alerts: @post.alert_users or all the posts a user @user is being alerted about: @user.alert_posts --Matt Jones On Jun 5, 10:55 am, JL Smith <autige...@gmail.com> wrote: > Is this thought process on the right path? Thanks for any help. > --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---