Visitors are also reading...
← PreviousNext →

Setting welcome page in Rails

09 Mar 2010

In Java/Tomcat I have a web.xml to define a "welcome-page" which usually points to some index.jsp. This means that if my root URL is http://www.mograbi.co.il/guy_mograbi it will show the page http://www.mograbi.co.il/guy_mograbi/index.jsp .

In Rails it works like this :

map.root :controller => "categories"

(for example). Read more about it here

← PreviousNext →