diff options
author | Mina Slater <slater.mina@gmail.com> | 2018-08-22 21:52:17 -0500 |
---|---|---|
committer | Mina Slater <slater.mina@gmail.com> | 2018-08-22 21:52:17 -0500 |
commit | f1d647aeff1438beea2b5027dadb8d48e033be43 (patch) | |
tree | 0eae599a3dacfe1f417b80086b80b5eda354c787 /guides/source/getting_started.md | |
parent | 0292a37533ff2b55189a42b4c01c7840d3785e23 (diff) | |
download | rails-f1d647aeff1438beea2b5027dadb8d48e033be43.tar.gz rails-f1d647aeff1438beea2b5027dadb8d48e033be43.tar.bz2 rails-f1d647aeff1438beea2b5027dadb8d48e033be43.zip |
[ci skip] corrects more grammar awkwardness, replacing denylist with restricted list and consistently use permitted
Diffstat (limited to 'guides/source/getting_started.md')
-rw-r--r-- | guides/source/getting_started.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index 6d83ebde01..197a198db7 100644 --- a/guides/source/getting_started.md +++ b/guides/source/getting_started.md @@ -779,7 +779,11 @@ 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 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: +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)) |