diff options
author | Christine Hertzel <c.hertzel@modcloth.com> | 2013-03-01 14:26:54 -0500 |
---|---|---|
committer | Christine Hertzel <c.hertzel@modcloth.com> | 2013-03-01 14:26:54 -0500 |
commit | 3dde99d01c71dad36e483d0d1957639fde255c27 (patch) | |
tree | ab2c0235ac6f84e6d4937f88a29e82fce775fd30 /guides | |
parent | a243f84b5ddbd12675e6354ed9f99f23241aaeed (diff) | |
download | rails-3dde99d01c71dad36e483d0d1957639fde255c27.tar.gz rails-3dde99d01c71dad36e483d0d1957639fde255c27.tar.bz2 rails-3dde99d01c71dad36e483d0d1957639fde255c27.zip |
Reverting commit regarding public/index.html (no longer in Rails 4.)
This reverts commit f8461f73c77c186ad0aa735fe9877990bffe1990.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/getting_started.md | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index 742b8ae548..a1d7e955c8 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -241,8 +241,6 @@ 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). |