Has_many through in Rails while assigning different roles
I'm trying to create a relationship between addresses and trips, and I'm not sure exactly how to set up the relationship. Each trip will have two addresses: the starting address and the ending address. Addresses can be used in many different trips, and they can either be the starting address or the ending address depending on the trip. What I envision is that when users are creating a new trip, they can select from a dropdown of all their addresses, so they could make a trip from their address called, say, "home" to their address called, say, "airport." There is already a polymorphic