splash (landing) page for rails app

北慕城南 提交于 2019-12-22 11:16:14

问题


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...


回答1:


  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.



来源:https://stackoverflow.com/questions/3695334/splash-landing-page-for-rails-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!