Skip to content

Form errors not getting populated/being emptied #5

Open
@andregoldstein

Description

@andregoldstein

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 # {}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions