diff options
author | Chelsea Macaluso <c.macaluso@modcloth.com> | 2013-03-01 12:32:40 -0500 |
---|---|---|
committer | Trent Michaels <t.michaels@modcloth.com> | 2013-03-01 12:32:40 -0500 |
commit | f8461f73c77c186ad0aa735fe9877990bffe1990 (patch) | |
tree | 417aa7cda40b06790b3562105aee523c0f82b057 | |
parent | baa32a57f9f1e146fd0d23b71b38d0d40fd00c99 (diff) | |
download | rails-f8461f73c77c186ad0aa735fe9877990bffe1990.tar.gz rails-f8461f73c77c186ad0aa735fe9877990bffe1990.tar.bz2 rails-f8461f73c77c186ad0aa735fe9877990bffe1990.zip |
Clarified removal of public/index.html file
Signed-off-by: Trent Michaels <t.michaels@modcloth.com>
-rw-r--r-- | guides/source/getting_started.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index c0cb5b0da9..95490b5e35 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -241,6 +241,8 @@ root to: "welcome#index" The `root to: "welcome#index"` tells Rails to map requests to the root of the application to the welcome controller's index action and `get "welcome/index"` tells Rails to map requests to <http://localhost:3000/welcome/index> to the welcome controller's index action. This was created earlier when you ran the controller generator (`rails generate controller welcome index`). +You should also remove the `public/index.html` file because it might otherwise take precedence over the routes defined in `config/routes.rb`. + If you navigate to <http://localhost:3000> in your browser, you'll see the `Hello, Rails!` message you put into `app/views/welcome/index.html.erb`, indicating that this new route is indeed going to `WelcomeController`'s `index` action and is rendering the view correctly. TIP: For more information about routing, refer to [Rails Routing from the Outside In](routing.html). |