Skip to content

Multi-parameters #30

Open
Open
@proglottis

Description

@proglottis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions