From ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9 Mon Sep 17 00:00:00 2001 From: Thiago Pinto Date: Wed, 14 Aug 2013 02:02:27 -0400 Subject: guides should tell people to write ruby code, not output --- guides/source/getting_started.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'guides') 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 ``` -- cgit v1.2.3