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'm struggling to get the form helper's error to show up.
When outputting JSON.stringify form.errors I'm getting an empty errors object but if I console.log my form instance after submitting a form with errors, they do show up correctly inside the log
...
form = new Form { name: "", email: "" }
def submit
form.post "/clients"
console.log form.errors # { email: .....}
<self>
....
<pre> JSON.stringify form.errors # {}
The text was updated successfully, but these errors were encountered:
I'm struggling to get the form helper's error to show up.
When outputting
JSON.stringify form.errors
I'm getting an empty errors object but if I console.log my form instance after submitting a form with errors, they do show up correctly inside the logThe text was updated successfully, but these errors were encountered: