aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2012-10-01 20:43:09 -0400
committerschneems <richard.schneeman@gmail.com>2012-10-02 11:31:23 -0400
commitddcda853c1aef19884a4e2153691389211aca3b2 (patch)
tree2cdbd44d7c988bd83cfba007ec18904a4526d50f /guides
parente427c3becf850126b58d7f38691bcc239ba63948 (diff)
downloadrails-ddcda853c1aef19884a4e2153691389211aca3b2.tar.gz
rails-ddcda853c1aef19884a4e2153691389211aca3b2.tar.bz2
rails-ddcda853c1aef19884a4e2153691389211aca3b2.zip
Add /rails/info/routes method to getting_started
Also fix # to $ for `rake routes` command
Diffstat (limited to 'guides')
-rw-r--r--guides/source/getting_started.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index 45389d7eea..c0760915ba 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -1064,10 +1064,10 @@ If you run `rake routes` from the console you'll see that we already
have a `posts_path` route, which was created automatically by Rails when we
defined the route for the index action.
However, we don't have a `post_path` yet, which is the reason why we
-received an error before.
+received an error before. With your server running you can view your routes by visiting [localhost:3000/rails/info/routes](http://localhost:3000/rails/info/routes), or you can generate them from the command line by running `rake routes`:
```bash
-# rake routes
+$ rake routes
posts GET /posts(.:format) posts#index
posts_new GET /posts/new(.:format) posts#new
@@ -1205,7 +1205,7 @@ If you run `rake routes`, you'll see that all the routes that we
declared before are still available:
```bash
-# rake routes
+$ rake routes
posts GET /posts(.:format) posts#index
POST /posts(.:format) posts#create
new_post GET /posts/new(.:format) posts#new