hi,
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
thanks
linoj
hi,
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
thanks
linoj
Use something like:
unless your_model_instance.errors[:field_name].nil? # do whatever you need to handle an error end