diff options
author | Thiago Pinto <tapgyn@gmail.com> | 2013-08-14 02:02:27 -0400 |
---|---|---|
committer | Thiago Pinto <tapgyn@gmail.com> | 2013-08-14 02:02:27 -0400 |
commit | ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9 (patch) | |
tree | ba7e76a657503f439e747b7f80339106d4a9edca /guides | |
parent | 3c6f35dc03e3543b418bcee38dc5f3ffbe92a72c (diff) | |
download | rails-ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9.tar.gz rails-ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9.tar.bz2 rails-ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9.zip |
guides should tell people to write ruby code, not output
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/getting_started.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index a0e0975d62..c84c971f47 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -574,8 +574,15 @@ whether the model was saved or not. If you submit the form again now, Rails will complain about not finding the `show` action. That's not very useful though, so let's add the `show` action before proceeding. +Open the file `config/routes.rb` and add this line. ```ruby +resources :posts +``` + +If you run `rake routes` in your terminal, several lines will be shown regarding posts, including this: + +``` post GET /posts/:id(.:format) posts#show ``` |