Displaying 1 result from an estimated 1 matches for "error_class".
Did you mean:
err_class
2006 Jul 12
0
Give form elements "fieldWithErrors" class in non-std. way?
...fine).
Do I have to create a snippet of code in my RHTML to figure out if the
target_list_ids attribute is empty (which it will be in an error
condition) and then set a variable to ''fieldWithErrors'' that I can use
in my check_box_tag call?
e.g.
<% if (error_condition)
error_class = ''fieldWithErrors''
end
%>
<%= check_box_tag("current_job[target_list_ids][]" :class =>
error_class, ...%>
Does that make sense?
--
Posted via http://www.ruby-forum.com/.