Replies: 1 comment 13 replies
-
@janko Making this change to the guide seems reasonable, but since you authored this guide, I wanted to check with you as to whether the use of |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In reference to:
https://rodauth.jeremyevans.net/rdoc/files/doc/guides/registration_field_rdoc.html
I know you are committed to maintaining your projects at zero issues, so I felt this was more appropriate here as I don't strictly know it to be a bug.
In both example A, and example B, validating the presence of the name field appears as:
and
Now, in principle this does validate the presence of the name field, however in practice I found I was using it to check that the name field was filled in. Not simply that the parameter was submitted.
After some initial confusion, I ended up using:
which I might recommend for the guide, if this is the intended behavior. (Or at least a note that this doesn't confirm the form input was filled out, only that the form input exists.)
Detail
That method is defined in the source as
So in effect it checks if it's nil, or if it's empty.
I'd be remiss not to thank you for your projects and your work maintaining them!
Beta Was this translation helpful? Give feedback.
All reactions