I'm working on my first project with RoR and I need to create many to many relationship between two models but with possibility of ordering objects of first model in association to second model.
Let's say that I have two following models - Customer - Route
I want assign many Customers to many Routes but with storing order of this association, so for example
-Route 1 --Customer 2, position 1 --Customer 1, position 2
-Route 2 --Customer 3, position 1 --Customer 1, position 2
I think I have to use for it has_many :through and belong_to and creat "position" field in in-middle-table but then how to make this field accessible and editable?