I have a page whose path is (e.g.) /premises/92 on which I\'m displaying \"please [log in] or [register] for additional information\" if the user is not logged in, and I wan
Devise use
session["#{scope}_return_to"]
So you can use session["user_return_to"] if your model for authentication is User.
session["user_return_to"]