Is there a reason you're redirecting to a NotLoggedIn action rather to  users.create_login_url(current_url)?