Devise authentication, signin loop

25 views
Skip to first unread message

Shabeer Hasan

unread,
Sep 23, 2015, 4:51:22 AM9/23/15
to Ruby on Rails: Talk
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 ?

Frederick Cheung

unread,
Sep 23, 2015, 7:44:10 AM9/23/15
to Ruby on Rails: Talk
Are you skipping the filter on the sessions controller?

Fred 

Shabeer Hasan

unread,
Sep 23, 2015, 12:00:20 PM9/23/15
to Ruby on Rails: Talk
Hi Fred, i thought of it, but i couldn't find the session helper , i think it's handled inside the devise libraries 
Reply all
Reply to author
Forward
0 new messages