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

Explicit messages #21

Open
grimen opened this issue Oct 31, 2009 · 4 comments
Open

Explicit messages #21

grimen opened this issue Oct 31, 2009 · 4 comments

Comments

@grimen
Copy link
Owner

grimen commented Oct 31, 2009

Currently disabled, but :message-option on ActiveRecord validations should be respected. Tricky, because they need to be defined on the field instead on the validator - an important design goal (for me).

@tecnh
Copy link

tecnh commented Apr 8, 2010

Is this why the :message => "Boo!" option has no effect on the text validatious puts up? Any sense of when/if this may get done?

@tecnh
Copy link

tecnh commented Apr 8, 2010

Is there any reason we can't use the DSL extension to do custom messages as described here? http://validatious.org/learn/features/dsl/error_messages

@tecnh
Copy link

tecnh commented Apr 8, 2010

Heh, dirty hack: change the title tag for your inputs to your custom message. This is probably why the feature is marked as 'tricky', I don't know how the DSL extension manages to do this.

@tecnh
Copy link

tecnh commented Apr 8, 2010

Last word: using 'title' overrides all error messages, so it can't be used when you want very different messages for different validation failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant