Skip to content

Commit 569dc54

Browse files
committed
Doc: update AC::Parameters guides for Rails 5
[ci skip]
1 parent d57fa1f commit 569dc54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/getting_started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ end
629629
The `render` method here is taking a very simple hash with a key of `:plain` and
630630
value of `params[:article].inspect`. The `params` method is the object which
631631
represents the parameters (or fields) coming in from the form. The `params`
632-
method returns an `ActiveSupport::HashWithIndifferentAccess` object, which
632+
method returns an `ActionController::Parameters` object, which
633633
allows you to access the keys of the hash using either strings or symbols. In
634634
this situation, the only parameters that matter are the ones from the form.
635635

@@ -639,7 +639,7 @@ If you re-submit the form one more time you'll now no longer get the missing
639639
template error. Instead, you'll see something that looks like the following:
640640

641641
```ruby
642-
{"title"=>"First article!", "text"=>"This is my first article."}
642+
<ActionController::Parameters {"title"=>"First Article!", "text"=>"This is my first article."} permitted: false>
643643
```
644644

645645
This action is now displaying the parameters for the article that are coming in

0 commit comments

Comments
 (0)