Skip to content

Commit

Permalink
Section 4.3, wrong word used: 'contact' => 'content'
Browse files Browse the repository at this point in the history
  • Loading branch information
may committed Oct 3, 2010
1 parent ab7b99f commit bcc1033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/getting_started.textile
Expand Up @@ -316,7 +316,7 @@ The first step to doing this is to delete the default page from your application
$ rm public/index.html
</shell>

We need to do this as Rails will deliver any static file in the +public+ directory in preference to any dynamic contact we generate from the controllers.
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 file +config/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+, uncomment it and change it like the following:

Expand Down

0 comments on commit bcc1033

Please sign in to comment.