Skip to content

Conversation

ochan1
Copy link
Contributor

@ochan1 ochan1 commented Jan 26, 2025

https://stackoverflow.com/questions/1183506/make-blank-params-nil

Using Election.new is fine (as long as the other parameters are fine also) https://stackoverflow.com/questions/33637552/save-activerecord-object-without-commit-rails-4

The issue that made Nominations create a buggy entry was this: rails/rails#26363
Code continued to keep running despite blank Person and Position params ("invalid" entries are not covered here, but a minor issue since only this page is running the function, and by UI limits the input available)

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

Successfully merging this pull request may close these issues.

1 participant