Skip to content

Commit

Permalink
Merge pull request #361 from juanpastas/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
joelmoss committed Apr 29, 2014
2 parents c7b3871 + bc004e9 commit c302307
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c302307

Please sign in to comment.