I have a User and a Role model and I am trying to make a many-to-many relationship.
Why do I need both of these lines?
has_many :user_roles
has_many :users, through: :user_roles
Doesn't the second line imply the first? When does the second line not imply the first? Why doesn't Rails just do its magic thing and make the second imply the first?