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?
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs