Devise and stored_location_for: how do you store the return location?

前端 未结 5 1811
我寻月下人不归
我寻月下人不归 2020-12-25 13:11

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

5条回答
  •  無奈伤痛
    2020-12-25 13:41

    Devise use

    session["#{scope}_return_to"]
    

    So you can use session["user_return_to"] if your model for authentication is User.

提交回复
热议问题