1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
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
..
abstract add lazy look up in abstract controller's translate method 2012-07-18 10:33:14 +03:00
activerecord Extract ActiveRecord::SessionStore from Rails 2012-08-24 15:24:19 -04:00
assertions
controller When executing permit with just a key that points to a hash, DO NOT allow all the hash 2012-10-12 01:01:26 -02:00
dispatch resource and resources do no longer modify passed options 2012-10-01 15:52:56 +02:00
fixtures Allow for deep directory path for view templates. 2012-10-11 17:36:58 +01:00
lib/controller Add HTML5 input[type="color"] helper 2012-05-21 17:23:48 -03:00
routing
template Allow for deep directory path for view templates. 2012-10-11 17:36:58 +01:00
tmp
abstract_unit.rb Define a SynchronousQueue for test in Action Pack. 2012-09-12 15:33:42 -03:00
active_record_unit.rb Rename "Fixtures" class to "FixtureSet" 2012-10-07 19:15:58 +02:00
ts_isolated.rb