Simple rails url question


#1

Hi, how do i have my rails index page at www.thing.com, and not
www.thing.com/controller. Is this done in the routes.rb? if so, how?
Thanks


#2

Hi Pingu,

Just take a look at routes.rb - it pretty much tells you in there what
to
do.

Look at this section:

You can have the root of your site routed by hooking up ‘’

– just remember to delete public/index.html.

map.connect ‘’, :controller => “welcome”

Uncomment that last line, put in the name of your controller and it
should
work fine. Create an index method in your controller and an
index.rhtmlfile in the views folder for your controller, delete the
public/index.html
file and your url should now point to that controller’s index page.

Good luck!

On 5/14/07, Pingu P. removed_email_address@domain.invalid wrote:


Terry (TAD) Donaghe


#3

Brilliant! works perfectly!