> 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 this point?
> 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 <http://localhost:3000/>, instead of the
> �Welcome Aboard� smoke test.
> The first step to doing this is to delete the default page from your
> application:
> |$ 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:
> |Blog::Application.routes.draw ||do|
> |||#...|
> |||# You can have the root of your site routed with "root"|
> |||# just remember to delete public/index.html.|
> |||root ||:to| |=> ||"home#index"|
> Theroot :to => "home#index"tells Rails to map the root action
> to the home controller�s index action.
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Documentation" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-docs/-/hQ-_NMP2guYJ.
> To post to this group, send email to rubyonrails-docs@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-docs+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-docs?hl=en.