title: Rails assign two attributes with one form item
body: <p>I have an object with attributes <code>first_team_name</code> and <code>second_team_name</code>, and a list that has pairs of <code>[team1, team2]</code> values.</p>
  
  <p>I would like to be able to have it so when I select an object in the form, it assigns <code>team1</code> to <code>first_team_name</code> and <code>team2</code> to <code>second_team_name</code>, but I have no idea how to split those values accordingly.</p>
  
  <p>Is there anyway to split the values of my collection and put them to two different attributes of my object?</p>