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

new_{association}_attribute #2

Closed
royalgiant opened this issue Dec 12, 2023 · 1 comment
Closed

new_{association}_attribute #2

royalgiant opened this issue Dec 12, 2023 · 1 comment

Comments

@royalgiant
Copy link

Every new form that is added renders with new_{association}.

#<ActionController::Parameters {"authenticity_token"=>"3kUjG2E7cVsYIYFgIdTKIgvwe0tgEUuB5WL510s5q515S4-hZnsjv7O-cKv-Q6qAv6b49HPTlxBfl6CpLxQamA", "automation"=>{"name"=>"Pinny 3", "imagination_id"=>"1", "frequencies_attributes"=>{"0"=>{"post_frequency"=>"daily", "days_of_the_week"=>"tuesday", "time_of_day"=>"1:30", "_destroy"=>"false"}, "new_frequencies"=>{"post_frequency"=>"daily", "days_of_the_week"=>"friday", "time_of_day"=>"8:00", "_destroy"=>"false"}}}, "button"=>"", "controller"=>"automations", "action"=>"create"} permitted: false>

In this code, if I had added 2 more new frequencies the last one would overwrite the ones before.

How are you getting around that?

Help is appreciated.

@hungle00
Copy link
Owner

Sorry for the slow feedback!
I fixed this bug. Upgrade to the new version ( 0.2.5 ) and your problem will disappear.

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

2 participants