Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-parameters #30

Open
proglottis opened this issue Dec 8, 2014 · 3 comments
Open

Multi-parameters #30

proglottis opened this issue Dec 8, 2014 · 3 comments

Comments

@proglottis
Copy link

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

@m-Peter
Copy link

m-Peter commented Dec 9, 2014

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

@kirs
Copy link

kirs commented Dec 10, 2014

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

@kirs
Copy link

kirs commented Dec 27, 2014

Please checkout the #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants