I’m developing a website but want a “Coming soon” page to be up for now. How do I structure a “Coming soon” page in my rails app 3.1? What’s the best way to go about doing it.
Four options I’m considering are:
-
Have a static coming soon page in the public directory. Have rails routes point to it and then modify my routes file when I go live.
-
Have a page served by a controller pointing to http://www.myproject.com/home. I’ll just change the routes file when I’m ready to go live to http://www.myproject.com
-
Use LaunchRock.com. Have my domain posted to LaunchRock and then point it to my site when I’m ready.
Which method is best suited for my Rails project?
Thank you
Any of these have different pros and cons. It’s up to you really.
If you’re close to launch, you’ll have to set up a web-server and Rails anyhow, so either setting up a Rails controller for serving the static pages, or have a static page in your public directory, are probably the best choices then.
Personally I’d not serve the “coming soon” page through other sites/services.
One reason for having some sort of “coming soon” page is for SEO purposes. For that it’s best to have full control over your site / page.
I’d go for using a Controller for the static pages, because you can more easily use the same layout as your site, and you can add dynamic content to that page (e.g. a sign-up or a contact form).
See:
http://railscasts.com/episodes/117-semi-static-pages
Option number 6) serve the static page through Rack
http://railscasts.com/episodes/222-rack-in-rails-3