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

undefined local variable or method `new_user_session_path' (application.html.haml) #1

Open
philiprhoades opened this issue Oct 20, 2013 · 1 comment

Comments

@philiprhoades
Copy link

People,

I am trying to use this with forem:

https://github.com/radar/forem

LRD is working OK by itself but after going through the forem gem adding process, I get the above error when I try to go to:

http://localhost:3000/forums

From the dev log it seems that Rails is going through the forem stuff OK until it needs to check about user login status (I get a different error if I am already logged in: undefined local variable or method `edit_user_registration_path') but I don't know how to fix the problem . . guidance about how fix this would be much appreciated!

Regards,
Phil.

@mwlang
Copy link
Owner

mwlang commented Oct 21, 2013

edit_user_registration_path is provided by Devise. Check your config/routes.rb file. You should have a line injecting devise's named routes into the application's router:

devise_for :users, :controllers => { :confirmations => "confirmations" }

Also, generate the Devise views if you need to override what links and options will be displayed when devise determines the user needs to log in -- this is where the above path is getting pulled into the mix.

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

2 participants