aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/getting_started.md
diff options
context:
space:
mode:
authorclaudiob <claudiob@gmail.com>2016-02-25 08:22:30 -0800
committerclaudiob <claudiob@gmail.com>2016-02-25 08:22:30 -0800
commit569dc54a151175c22f5dcff3811dbaeecfbfd12d (patch)
treec4c63149d6769d19c0ebbb8f081399c4c86b93bb /guides/source/getting_started.md
parentd57fa1fbf3a11da1d326eb36191b754c0738e14e (diff)
downloadrails-569dc54a151175c22f5dcff3811dbaeecfbfd12d.tar.gz
rails-569dc54a151175c22f5dcff3811dbaeecfbfd12d.tar.bz2
rails-569dc54a151175c22f5dcff3811dbaeecfbfd12d.zip
Doc: update AC::Parameters guides for Rails 5
[ci skip]
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 45891689b7..4431512eda 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -629,7 +629,7 @@ end
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
+method returns an `ActionController::Parameters` object, which
allows you to access the keys of the hash using either strings or symbols. In
this situation, the only parameters that matter are the ones from the form.
@@ -639,7 +639,7 @@ If you re-submit the form one more time you'll now no longer get the missing
template error. Instead, you'll see something that looks like the following:
```ruby
-{"title"=>"First article!", "text"=>"This is my first article."}
+<ActionController::Parameters {"title"=>"First Article!", "text"=>"This is my first article."} permitted: false>
```
This action is now displaying the parameters for the article that are coming in