mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
We know if the values are too long, so let's provide a useful message rather than generating an unhandled database error. This code seems rather repetetive, it would be good to use a shared module. I wonder if there's a gem for that. Note that the existing /products/*/edit screen doesn't even handle validation errors yet, but that's something for another day..