作者:摩奇甜品 | 来源:互联网 | 2023-09-16 19:21
Iwanttolaunchamodalboxwhenpeopleloginforthefirsttime,Icanworkwithalogincounterb
I want to launch a modal box when people login for the first time, I can work with a login counter but I have special redirect after first login because the people come from a confirmation url and after they are automaticly logged in.
我想在人们第一次登录时启动一个模态框,我可以使用登录计数器但是我在首次登录后有特殊的重定向,因为人们来自确认网址并且在他们自动登录后。
The question is now what is the best way to launch this modal box? Set a COOKIE that you want to show the modal box or do redirect_to root_path(:first_login => true )?
现在的问题是启动这个模式盒的最佳方法是什么?设置要显示模式框的COOKIE或执行redirect_to root_path(:first_login => true)?
1 个解决方案