how rails determines which form field had an error -


i trying validate form on client side via js. have nested fields in form , need know, field hat error since there can more fields of same type, e.g. fon number. inside error of model, says, 'type' of field had error 'person.fon' not of fon fields. use nested_form gem every field has unique id

how rails determines exactly, field had error? when use standard form validation, right fields wrapped in error div.

thats how rails it

enter image description here

with @model.errors info, 1 of fields(fon, email, etc.) had error, not one.

you need see in logs , see incorrect form it. after see line wrong.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -