Hi, I get this error and the error message seems to suggest that the error is related to the params[:session][:email]. Would someone please help to clarify the error as to what causes it and the solution. Thank you.
TypeError in SessionsController#create
no implicit conversion of Symbol into Integer
Extracted source (around line #6):
5. def create
6. @user = User.find_by_email(params [:session][:email])
7. if @user && @user.authenticate(params [:session][:password])
8. session[:user_id] = @user.id
9. redirect_to '/'
Application Trace | Framework Trace | Full Trace