> 
> try @player.save

I've changed the code to:

   def Player.create_player(team_id)
     @player = Player.new
     @player.relate_to_team(team_id)
     @player.save
     return @player
   end

but get the same error.