kennyj
277918e61a
Strong parameters should permit nested number as key. Closes #12293
2013-09-27 03:53:45 +09:00
Rafael Mendonça França
cb56c39b51
Lets kepp using Ruby 1.9 syntax
2013-01-22 10:40:33 -02:00
Xavier Noria
cbec22ce57
strong parameters filters permitted scalars
2013-01-20 17:59:53 +01:00
Francesco Rodriguez
83482256ef
hash filters should be accessed with symbols or strings
2012-11-30 11:24:16 -05:00
Santiago Pastorino
bdd105d8b9
When executing permit with just a key that points to a hash, DO NOT allow all the hash
...
params.require(:person).permit(:projects_attributes) was returning
=> {"projects_attributes"=>{"0"=>{"name"=>"Project 1"}}}
When should return
=> {}
You should be doing ...
params.require(:person).permit(projects_attributes: :name)
to get just the projects attributes you want to allow
2012-10-12 01:01:26 -02:00
Philip Arndt
45d6944afa
Correct parameter access.
...
* The params as supplied pass born in authors[0] but not authors[1] so it seems like the test isn't covering what it should be covering.
2012-09-19 13:46:01 +12:00
Guillermo Iguaran
91bcebbdef
Support fields_for attributes, which may have numeric symbols as hash keys
2012-09-16 23:58:21 -05:00
Guillermo Iguaran
b4d9a586bc
require abstract_unit in parameters tests
2012-09-16 23:58:20 -05:00
Guillermo Iguaran
885005461b
Integrate ActionController::Parameters from StrongParameters gem
2012-09-16 23:58:19 -05:00