Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #361 from juanpastas/patch-1

Update README.md
  • Loading branch information...
commit c30230765db3377ea05610e69fba7b251dda2b50 2 parents c7b3871 + bc004e9
@joelmoss joelmoss authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  README.md
View
2  README.md
@@ -685,6 +685,8 @@ def permitted_params
end
```
+Remember that if your field is sent by client to server as an array, you have to write `:permitted_field => []`, not just `:permitted_field`.
+
Note that this doesn't work if you use strong_parameters' require method
instead of permit, because whereas permit returns the entire sanitized
parameter hash, require returns only the sanitized params below the parameter
Please sign in to comment.
Something went wrong with that request. Please try again.