lazy_registration_demos
lazy_registration_demos copied to clipboard
undefined local variable or method `new_user_session_path' (application.html.haml)
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.
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.