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

RSec Admin Nomination Page - "New Officer" blank error check + Return properly after redirect #321

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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