you can't stop me from errors = [ ("Name is required." unless name.present?), ("Badge text is required." unless badge_text.present?), ("Email is required." unless email.present?), ("Email and confirmation must match" unless email == email_confirmation), ].compact
-
Show this thread
-
Replying to @garybernhardt
The problem is that we want this nice valid? method, which is always going to be a lie.
1 reply 2 retweets 1 like
Replying to @sgrif @garybernhardt
fn save(Record, DbConnection) -> Result<Record, Errors>
0 replies
1 retweet
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.