Browse files

Merge pull request #361 from juanpastas/patch-1

  • Loading branch information...
2 parents c7b3871 + bc004e9 commit c30230765db3377ea05610e69fba7b251dda2b50 @joelmoss joelmoss committed Apr 29, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0
@@ -685,6 +685,8 @@ def permitted_params
+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

0 comments on commit c302307

Please sign in to comment.