As the title suggests, the devise helper methods are only working in users_controller.rb. If I try to access it in any other controller (even applications_controller.rb) after sign-in, im getting this error.
Routing Error
undefined local variable or method `current_user' for ApplicationController:Class
Im just adding puts current_user
in applications_controller.rb.
This is my routes.rb
devise_for :users
resources :users
Any idea why this is happening? Thanks.