Reading the fine manual, I am doing the tasks in order: I got to 4.3 and
hit a wall.
"The root :to => "home#index" tells Rails to map the root..."
In any operating system that I have used, home#index is not a path. I want
to route to the path C:\Documents and Settings\Baruch\blog> where i
created my "blog" first application as listed in the fine manual. This step
4.3 (I would think) is telling me that I can list my blog folder as the
root of my application and it will be used as the index.htm root folder. My
question is How do I actually "root" to my "blog" folder?
My observation is Why doesn't the fine manual actually tell me this, at
Page copied for reference below....4.3 Setting the Application Home Page
Now that we have made the controller and view, we need to tell Rails when
we want “Hello Rails!” to show up. In our case, we want it to show up when
we navigate to the root URL of our site,http://localhost:3000, instead of
the “Welcome Aboard” smoke test.
The first step to doing this is to delete the default page from your
$ rm public/index.html
We need to do this as Rails will deliver any static file in the public directory
in preference to any dynamic content we generate from the controllers.
Now, you have to tell Rails where your actual home page is located. Open
the fileconfig/routes.rb in your editor. This is your application’s *routing
file* which holds entries in a special DSL (domain-specific language) that
tells Rails how to connect incoming requests to controllers and actions.
This file contains many sample routes on commented lines, and one of them
actually shows you how to connect the root of your site to a specific
controller and action. Find the line beginning with root :to and uncomment
it. It should look something like the following:
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
root :to => "home#index"
The root :to => "home#index" tells Rails to map the root action to the home
controller’s index action.