I cant figure out how to create a relationship between a player and roster through a HABTM relationship called players_rosters, but in my console how do i create a relation between the two with attributes.
Players_rosters consists of roster_id and player_id. The relationship works but how can i create the association with manual attributes.
r = Roster.find(1)
r.create(:player_id => 1)
This doesnt work, but how could i do this?