hi, simplifying I''ve this: user -> membership -> group -> grant -> right user has_many group through membership and group has_many right through grant. I can fetch the groups'' rights well, doing some console stuff like @user.groups.each do |group| ;; group.rights.each do |right| ;; puts right.name ;; end ;; end etc. it would be very powerful to be able to do @user.rights directly with :uniq instead of querying groups'' rights, anybody can think of an association like this? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---