By default Devise has an authenticate_user!
helper. When used in the controller and the user is not authenticated, then it redirects to http://localhost:3000/users/sign_in. I want to change the redirect URL when user is not authenticated.
Thanks
Asked
Active
Viewed 126 times
0

Yanis Vieilly
- 827
- 6
- 11

user951620
- 41
- 6
-
4possible duplicate of [Redirect to log in page if user is not authenticated with Devise](http://stackoverflow.com/questions/23555618/redirect-to-log-in-page-if-user-is-not-authenticated-with-devise) – lcguida Aug 12 '15 at 00:14
-
1https://github.com/plataformatec/devise/wiki/How-To:-Change-the-default-sign_in-and-sign_out-routes – HungryCoder Aug 12 '15 at 02:50