aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/getting_started.md
diff options
context:
space:
mode:
authorFrancis Go <francis.go@gmail.com>2013-09-28 01:45:15 +1000
committerFrancis Go <francis.go@gmail.com>2013-09-28 01:45:15 +1000
commit713f1382586b68ba70fdac76164da76a516585e0 (patch)
tree3ac0bb01444fc9c971ef9e45f390fbe744d09e37 /guides/source/getting_started.md
parent287014d7249cceb2842aa793a4500fed491feaf9 (diff)
downloadrails-713f1382586b68ba70fdac76164da76a516585e0.tar.gz
rails-713f1382586b68ba70fdac76164da76a516585e0.tar.bz2
rails-713f1382586b68ba70fdac76164da76a516585e0.zip
Getting Started Guide: Fix code container in Chapter 5.2 [ci-skip]
Diffstat (limited to 'guides/source/getting_started.md')
-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 355e767ee2..0a95fbec45 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -522,6 +522,7 @@ Edit the `form_for` line inside `app/views/posts/new.html.erb` to look like this
In this example, the `posts_path` helper is passed to the `:url` option.
To see what Rails will do with this, we look back at the output of
`rake routes`:
+
```bash
$ rake routes
Prefix Verb URI Pattern Controller#Action
@@ -535,6 +536,7 @@ edit_post GET /posts/:id/edit(.:format) posts#edit
DELETE /posts/:id(.:format) posts#destroy
root / welcome#index
```
+
The `posts_path` helper tells Rails to point the form
to the URI Pattern associated with the `posts` prefix; and
the form will (by default) send a `POST` request