Quick and Simple: How do I get rid of the subdir for my railsapp? (Making it root dir)

Ok, I created my rails application called “word”. It consists of:

controllers/application.rb (empty, whatever the default is)
controllers/word.rb (my project)

views/index.rhtml (my view)

If I go to localhost:3000, I see the “welcome to rails” page.
If I go to localhost:3000/word/, I get my application.

How do I make my application the root by itself, without the /word/ at
the end?

I think this is a fairly straightforward issue where I’m overlooking
something, but it is causing me a lot of problems when deploying the
application on a web server (same problem, larger scale).

Thanks!

You know it’s funny. I’ve been searching for over a day, and come up
with nothing. I post this question and 20 minutes later here we are:

http://wiki.rubyonrails.com/rails/pages/HowtoConfigureTheDefaultPageForYourRailsApp

On 9/27/07, AR [email protected] wrote:

How do I make my application the root by itself, without the /word/ at
the end?

I think this is a fairly straightforward issue where I’m overlooking
something, but it is causing me a lot of problems when deploying the
application on a web server (same problem, larger scale).

Did you read that “welcome to rails” page? Last paragraph should tell
you how to do this.

HTH,
Isak

The page I got only said:

Getting started
Here’s how to get rolling:

  1. Create your databases and edit config/database.yml

    Rails needs to know your login and password.

  2. Use script/generate to create your models and controllers

    To see all available options, run it without parameters.

  3. Set up a default route and remove or rename this file

    Routes are setup in config/routes.rb.

Which didn’t sound obvious at the time, but that’s mostly because I’m
new to rails (could you tell?).

Routes. It’s a big part of Rails. It’s more than just setting the
default page for your app.

basic routes: Peak Obsession

rest:
http://www.softiesonrails.com/2007/3/28/rest-101-part-1-understanding-resources

You might also want to spend the $ and purchase the agile web dev with
rails book from The Pragmatic Programmers