阅读背景:

在登录后将用户重定向到相同的页面(Rails)

来源:互联网 

I want to redirect the user to the same page after login. The scenario is that the user will be redirected to a signin page if he is not logged in. On the signin page, when he clicks on one of the available user options, I want to store the user_id and then redirect him back to the same page where he came from. For this, I'm using the following code:I want to redirect the user to the same page af




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: