lazy_registration_demos icon indicating copy to clipboard operation
lazy_registration_demos copied to clipboard

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

Open philiprhoades opened this issue 11 years ago • 1 comments

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.

philiprhoades avatar Oct 20 '13 20:10 philiprhoades

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.

mwlang avatar Oct 21 '13 10:10 mwlang