Closed ohmygodvt95 closed 5 years ago
👍 I could use this too.
If you are using Sprocket 3, the interface is changed like this (reference):
Rails.application.config.assets.configure do |env|
env.context_class.class_eval do
include Devise::Controllers::Helpers
end
end
Also, Devise helpers are defined in Devise::Controllers::Helpers
.
I want to use some functions in Devise Helper: current_user, user_signed_in? In the template. I tried but failed.
I was able to use the path function, link_to ... but with devise is not done. who can help me?. thank you.