You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, there’s no built-in validation for this? Currently, I’m using Turbo Stream to render a table that includes barcodes. I have a form where users can add a barcode of type EAN-13.
For example:
If I enter 2004770027357, everything works fine.
But if I enter 2004770027358, the app crashes, and Turbo Stream fails to render, showing an error. In the debug info, there is no form validation error !!
My question is:
Should I manually validate the barcode in the controller before committing it to the database, or does the database throw an exception on commit?
Originally posted by @xorgxx in #180
The text was updated successfully, but these errors were encountered: