Hello, i am new to rails, i am starting an app with devise for authentication, but when i add the line before_action :authenticate_user!
``
in the ApplicationContoller, when we login it just keeps landing on the login page again in a loop. but when i remove the above line it’s working and is redirecting to the root url.
Any advise please ?