Ruby on Rails Wednesday, September 23, 2015

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 ?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b42c1641-caf1-4866-9ff8-392c3e5e4b9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment