Skip to content

Commit

Permalink
guides should tell people to write ruby code, not output
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagopintodev committed Aug 14, 2013
1 parent 3c6f35d commit ea4db3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions guides/source/getting_started.md
Expand Up @@ -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
```

Expand Down

0 comments on commit ea4db3b

Please sign in to comment.