0

以下のコード行がありますが、エラー "ActionController::ParameterMissing in LeaguesController#create param not found: League_name" が発生する理由がわかりません。

class LeaguesController < ApplicationController
  def new
    @league = League.new
  end

  def create
    @league = League.new(league_params)
    if @league.save
        redirect_to payments_new_url
    else
        render 'new'
    end
  end

  private

  def league_params
    params.require(:league_name).permit(:league_url)
  end
end
4

1 に答える 1