railsgsoc/actionform

Multi-parameters

Opened this issue · 3 comments

It would be really useful to be able to use the rails date helpers via multi-parameters. At the moment it fails with the exception NoMethodError: undefined method due_on(1i)=' for #Task:0x007fc448009718`

I put together an example to show exactly what I mean here:
proglottis/nested-form-examples@d5656b3

It has a kind of sprawling implementation in rails.

Strong params allows these through here: https://github.com/rails/rails/blob/3ecf26f48ae10b9d11b2db867fa57cf25ee99bed/actionpack/lib/action_controller/metal/strong_parameters.rb#L394

And the actual value object is created from params here: https://github.com/rails/rails/blob/3ecf26f48ae10b9d11b2db867fa57cf25ee99bed/activerecord/lib/active_record/attribute_assignment.rb#L108

Thanks @proglottis I'll try to come up with a solution!

kirs commented

@m-Peter bear in mind the refactoring branch by @kaspth

kirs commented

Please checkout the #33