简体   繁体   中英

splash (landing) page for rails app

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM