rails tutorialユーザー編集機能のところで10.2.3 フレンドリーフォワーディング
を終えて、ブラウザで挙動を確認したところ、以下のようなエラーが出ました。
TypeError in SessionsController#create no implicit conversion of Symbol into Integer Extracted source (around line #7): def create @user=User.find_by(email:params[:session][:email].downcase) if@user&&@user.authenticate(params:[:session][:password]) log_in user redirect_back_or user else
if@user&&@user.authenticate(params:[:session][:password]) ```の7行目のところがおかしいようなのですが、どうすればいいのかわかりません。 どなたか教えて下さい。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/10/08 06:15 編集
2018/10/08 06:23
2018/10/08 06:28 編集
退会済みユーザー
2018/10/08 06:56