Is it possible to avoid applying rails default FieldWithErrors css class for particular input fields. if not how to avoid on the whole. Thanks a bunch -- Posted via http://www.ruby-forum.com/.
On Thu, Jun 25, 2009 at 5:05 AM, Newb Newb<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Is it possible to avoid applying rails default FieldWithErrors css > class for particular input fields. > if not how to avoid on the whole.You can print the errors individually using your own css: <% if @foo.errors && @foo.errors[''bar''] -%> <span class="error"><%= @foo.errors[''bar''] %></span> <% end -%> -- Greg Donald http://destiney.com/