Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request, field with errors ? #43

Closed
gummybears opened this issue Aug 30, 2010 · 3 comments
Closed

request, field with errors ? #43

gummybears opened this issue Aug 30, 2010 · 3 comments

Comments

@gummybears
Copy link

More a request,

Just starting to use your gem.

I would like to add the class field_with_errors to the input field which has the errors,
in order to style it with CSS and to hook up javascript code. Is this possible ?

At the moment the input field and its label are wrapped in a div with class field_with_errors

Thanks

@carlosantoniodasilva
Copy link
Member

It's possible to add style/javascript by using the div with field_with_errors as well. Aren't you able to hook up using this?

@josevalim
Copy link
Contributor

Just configure it in your initializer.

@josevalim
Copy link
Contributor

Sorry, you can change that by simply changing field_error_proc in ActionView::Base. It is part of Rails API.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants