This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fixes examples in README

  • Loading branch information...
1 parent 305337b commit cdea33c730530fb405f45a210f79a8d7bc2a4dca @fxn fxn committed Jan 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.rdoc
View
@@ -45,7 +45,7 @@ To declare that the value in +params+ must be an array of strings or integers ma
You can also use permit on nested parameters, like:
- params.permit(:name, :emails => [], friends: [ :name, { family: [ :name ] }])
+ params.permit(:name, {:emails => []}, :friends => [ :name, { :family => [ :name ] }])
Thanks to Nick Kallen for the permit idea!

0 comments on commit cdea33c

Please sign in to comment.