aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2013-07-29 09:04:39 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2013-07-29 14:40:02 +0530
commit482718ffb5bcb05ff7867a5270c31e570755ae71 (patch)
tree81ecadf49f045d9c2e30d3d03b1c36ef5d98a3ba /guides/source
parentb67a80de9b55f91feb1c1056824f456710a96d0d (diff)
downloadrails-482718ffb5bcb05ff7867a5270c31e570755ae71.tar.gz
rails-482718ffb5bcb05ff7867a5270c31e570755ae71.tar.bz2
rails-482718ffb5bcb05ff7867a5270c31e570755ae71.zip
Improved the doc about showing posts in getting started guide [ci skip]
- Reference #11644
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/getting_started.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index a0e0975d62..58bf8bbe90 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -575,6 +575,8 @@ 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.
+First we need to add a new `route` in `config/routes.rb`.
+
```ruby
post GET /posts/:id(.:format) posts#show
```