Displaying 1 result from an estimated 1 matches for "object_property".
2006 May 07
2
label tag with errors?
I''d like to create a label tag that has a special css class if has errors.
So Ideally, I''d like:
<%= label(''object'',''property'',''Property'') %>
To generate:
<label for="object_property">Property</label>
And if there are errors on object.property, generate this:
<label for="object_property" class="fieldWithErrors">Property</label>
First of all, is there an easy way to do this?
I''m assuming there isn''t, so I though...