You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to login in to my app, I get the following error
NameError in AuthorSessionsController#create
def create
if login(params[:email], params[:password])
redirect_back_or_to(articles_path, notice: 'Logged in successfully.')
else
flash.now.alert = "Login failed."
My author_sessions controller was copied directly from the tutorial. I can't figure out what is wrong. Maybe I installed sorcery incorrectly, but that seems unlikely. Any ideas. Thanks!
The text was updated successfully, but these errors were encountered:
When I try to login in to my app, I get the following error
NameError in AuthorSessionsController#create
def create
if login(params[:email], params[:password])
redirect_back_or_to(articles_path, notice: 'Logged in successfully.')
else
flash.now.alert = "Login failed."
My author_sessions controller was copied directly from the tutorial. I can't figure out what is wrong. Maybe I installed sorcery incorrectly, but that seems unlikely. Any ideas. Thanks!
The text was updated successfully, but these errors were encountered: