Skip to content
This repository
Browse code

guides should tell people to write ruby code, not output

  • Loading branch information...
commit ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9 1 parent 3c6f35d
James Pinto thejamespinto authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. +7 0 guides/source/getting_started.md
7 guides/source/getting_started.md
Source Rendered
@@ -574,8 +574,15 @@ whether the model was saved or not.
574 574 If you submit the form again now, Rails will complain about not finding
575 575 the `show` action. That's not very useful though, so let's add the
576 576 `show` action before proceeding.
  577 +Open the file `config/routes.rb` and add this line.
577 578
578 579 ```ruby
  580 +resources :posts
  581 +```
  582 +
  583 +If you run `rake routes` in your terminal, several lines will be shown regarding posts, including this:
  584 +
  585 +```
579 586 post GET /posts/:id(.:format) posts#show
580 587 ```
581 588

0 comments on commit ea4db3b

Please sign in to comment.
Something went wrong with that request. Please try again.