Rails 应用程序的初始(登陆)页面

发布于 2024-09-18 14:33:05 字数 209 浏览 1 评论 0原文

我正在为 Rails 应用程序创建一个启动页面,其中包含一个电子邮件字段,供用户填写并在网站完全启动时收到通知。

最好的搭配方式是什么?

我是否应该为登陆页面创建一个新的应用程序或者我应该使用相同的应用程序并设置一些变量,例如“:splash => true”,这将只提供对启动页面的访问

这也会有所帮助部署中...

I am creating a splash page for a rails app which contains an email field for the user to fill up and get notified when the site is completely launched.

What is the best way to go with?

Should I create a new application just for landing page OR should I use the same app with some variable set like ":splash => true" which would give access only to the splash page

Which would also help in deployment...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

待天淡蓝洁白时 2024-09-25 14:33:05
  1. 添加启动页面

  2. 添加一个before_action,为应用程序控制器的所有操作临时重定向到启动页面。

  3. 当网站启动时,禁用该 before_action

  1. Add a splash page

  2. Add a before_action that does a temp redirect to the splash page for all actions to your application controller.

  3. when the site is launched disable that before_action.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文