Form builder

I’m creating a custom form_builder and
i’m trying to figure out how would helpers like text_field know if
the field has an error message so I can highlight it and show the
message text


Use something like:

unless your_model_instance.errors[:field_name].nil?

do whatever you need to handle an error


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs