-
Notifications
You must be signed in to change notification settings - Fork 4
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
Devise::Controllers::Helpers #1
Comments
Yep, looking at the |
my quick and dirty fix for now -- placing this method in application_helper:
|
Weird. I poked around at this locally, and didn't get the problem, Devise works fine for me with just the include. That's a weird error message to get, though, I'd expect to see the class name. Are you calling it in an instance method of a controller that inherits from ApplicationController? |
Can you call define_helpers on the controller class? Then just call helper_method yourself to put it in the views. |
Including
Devise::Controllers::Helpers
in ApplicationController.rb resolves the Devise-specificbefore_filter :authenticate_user!
, but I'm still not able to use the current_user method in my controllers. This is what happens when I try calling it:It seems as if the
define_helpers
method isn't getting triggered in Devise. Any ideas?The text was updated successfully, but these errors were encountered: