`game_id` is accessible, why not just `@player = Player.new(params[:player].merge(:game_id => @game.id))`?