Need data from rails join table, has_many :through
I have 3 tables - users, things, and follows. Users can follow things through the follows table, associating a user_id with a things_id . This would mean: class User has_many :things, :through => :follows end class Thing has_many :users, :through => :follows end class Follow belongs_to :users belongs_to :things end So I can retrieve thing.users with no problem. My issue is if in the follows table, I have a column named "relation", so I can set a follower as an "admin", I want to have access to that relation. So in a loop I can do something like: <% things.users.each do |user| %> <%= user