← back to the blog
fousa tag
Current tag: tag
2010
5
MAR
Overwrite custom field errors in Rails3
When using form helpers in your form to display your textfield you always have to match your CSS style to match with the div's that are added by Ruby on rails when an error occurs. This is the form helper: f.text_field :title This is the generated tag with the error div surrounding it: <div class="fieldWithErrors"&...