Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError in AuthorSessionsController #1235

Open
IJSnapp opened this issue Apr 27, 2017 · 0 comments
Open

NameError in AuthorSessionsController #1235

IJSnapp opened this issue Apr 27, 2017 · 0 comments

Comments

@IJSnapp
Copy link

IJSnapp commented Apr 27, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant