diff options
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 ``` |