On Fri, Mar 6, 2009 at 8:53 AM, Hassan S.
map.root to that specific controller/view but I think cutting down on
unnecessary rails calls would be best.
Perhaps someone else will chime in with an alternative, but I think
fighting this convention will be more trouble than its worth
Hassan S. ------------------------ [email protected]
Hi, when someone goes to app.com, you would like it to go to the
homepage.html. Thus, you can do one of the following:
i) Update the following in your httpd.conf file:
DirectoryIndex index.html index.htm index.php homepage.html
ii) Upload the file (i.e. homepage.html) to public directory of
Note: This should do the job for you.
b) Rails Caching
i) Turn page caching on for a view template (i.e.
ii) update you map.root
map.root :controller => "index", :action => "homepage"
Note: This will cache the static content (i.e. homepage.html)
your public folder. Thus, it will be served by
Apache or the web server that you’re using.
In short, the standard way of providing the root page of a web site is
use an index.[php|html|htm|…] but feel free to use one
of the methods above to achieve your result.