On Thu, Jun 25, 2009 at 5:05 AM, Newb
Newb<[email protected]> 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/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to