aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/getting_started.md
diff options
context:
space:
mode:
authorChristopher Owen <mail@christopherowen.id.au>2014-04-14 12:06:59 +1000
committerChristopher Owen <mail@christopherowen.id.au>2014-04-14 12:06:59 +1000
commit0e9fab5ff5c43d6f1c6b0eb8d0b1f988b499ebef (patch)
tree8e788c2c924447c1fd3ddb1ecaa0ad6c6fd021dd /guides/source/getting_started.md
parentaf549a1ad6692d7e2c756750651f0e1b293f5185 (diff)
downloadrails-0e9fab5ff5c43d6f1c6b0eb8d0b1f988b499ebef.tar.gz
rails-0e9fab5ff5c43d6f1c6b0eb8d0b1f988b499ebef.tar.bz2
rails-0e9fab5ff5c43d6f1c6b0eb8d0b1f988b499ebef.zip
- Fix lingering reference to `:text` instead of the newer `:plain`
- Section references `form_tag` instead of the `form_for` used in the example
Diffstat (limited to 'guides/source/getting_started.md')
-rw-r--r--guides/source/getting_started.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index bafb75c668..1ae7397696 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -612,7 +612,7 @@ def create
end
```
-The `render` method here is taking a very simple hash with a key of `text` and
+The `render` method here is taking a very simple hash with a key of `plain` and
value of `params[:article].inspect`. The `params` method is the object which
represents the parameters (or fields) coming in from the form. The `params`
method returns an `ActiveSupport::HashWithIndifferentAccess` object, which
@@ -1136,7 +1136,7 @@ The `method: :patch` option tells Rails that we want this form to be submitted
via the `PATCH` HTTP method which is the HTTP method you're expected to use to
**update** resources according to the REST protocol.
-The first parameter of the `form_tag` can be an object, say, `@article` which would
+The first parameter of `form_for` can be an object, say, `@article` which would
cause the helper to fill in the form with the fields of the object. Passing in a
symbol (`:article`) with the same name as the instance variable (`@article`) also
automagically leads to the same behavior. This is what is happening here. More details