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
I tried to use databound to implement simple CRUD. After adding validation to model I expected to have basic way to obtain information about error while creating new record. I found nothing about it in docs and do not know how to do it. Unfortunately, the fail promise callback is never used, result always goes to done! How is one supposed to handle validation errors?
The text was updated successfully, but these errors were encountered:
It is actually a bug that was introduced with f995f1e
It tries to capture errors in development environment and show them in a friendly way.
But I'm not sure on how to securely handle validations. Do you think we should get the invalid validation error to the Javascript? Would the standard "Error in the backend" error be sufficient?
Well... it seems quite clear. Validation error originates from the user, so we need to get sufficient information to present it to the user, as standard RoR form helper does. I don't think that "Error in the backend" would be of any help...
I tried to use databound to implement simple CRUD. After adding validation to model I expected to have basic way to obtain information about error while creating new record. I found nothing about it in docs and do not know how to do it. Unfortunately, the
fail
promise callback is never used, result always goes todone
! How is one supposed to handle validation errors?The text was updated successfully, but these errors were encountered: