Permalink
Browse files

Bring "Getting Started" in line with the code.

We removed `:to` in the code examples, but not in the
description. Whoops!

This has already been fixed on edge.

Closes #12246
  • Loading branch information...
1 parent 1d03b5f commit 0dfb51be88bfe25b7f9bf02f3ddfa28b639e0e60 @steveklabnik steveklabnik committed Sep 16, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 guides/source/getting_started.md
View
6 guides/source/getting_started.md
@@ -233,13 +233,13 @@ Blog::Application.routes.draw do
# root to: "welcome#index"
```
-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:
+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` and uncomment it. It should look something like the following:
```ruby
-root to: "welcome#index"
+root "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`).
+The `root "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`).
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.

0 comments on commit 0dfb51b

Please sign in to comment.