diff options
author | Mina Slater <slater.mina@gmail.com> | 2018-08-22 07:51:39 -0500 |
---|---|---|
committer | Mina Slater <slater.mina@gmail.com> | 2018-08-22 07:51:39 -0500 |
commit | 58b78376e8f6cee17df96a4c2de0c4bde3ff65d5 (patch) | |
tree | 2d27f420b1a0d9c1bf42fa02426b0505c143cbd7 /guides/source/getting_started.md | |
parent | 7bdf43daacc2377d02bb0ef54afa9ac4dcdf8dec (diff) | |
download | rails-58b78376e8f6cee17df96a4c2de0c4bde3ff65d5.tar.gz rails-58b78376e8f6cee17df96a4c2de0c4bde3ff65d5.tar.bz2 rails-58b78376e8f6cee17df96a4c2de0c4bde3ff65d5.zip |
[ci skip] fixes a few more grammar issues, changing a to an before the word allowlist
Diffstat (limited to 'guides/source/getting_started.md')
-rw-r--r-- | guides/source/getting_started.md | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index a0dbc3de7d..6d83ebde01 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -779,10 +779,7 @@ extra fields with values that violated your application's integrity? They would be 'mass assigned' into your model and then into the database along with the good stuff - potentially breaking your application or worse. -We have to allowlist our controller parameters to prevent wrongful mass -assignment. In this case, we want to both allow and require the `title` and -`text` parameters for valid use of `create`. The syntax for this introduces -`require` and `permit`. The change will involve one line in the `create` action: +We have to define our permitted controller parameters to prevent wrongful mass assignment. In this case, we want to both allow and require the `title` and `text` parameters for valid use of `create`. The syntax for this introduces `require` and `permit`. The change will involve one line in the `create` action: ```ruby @article = Article.new(params.require(:article).permit(:title, :text)) |