Skip to content

Error messages #4

@micapam

Description

@micapam

This library is great, especially since you fixed the memory leak! So thanks for all your hard work. Just have one problem and I'm not sure how to work out where it's going wrong...

For my usual validations I can configure error messages via locales e.g. in my config/locales/en.yml I have:

  activerecord:
    errors:
      messages:
        blank:      is missing

Now the problem is, while for any attributes with normal validations I get the error message I want ('foo is missing'), for any attributes that I validate in a validation_scopes block, I get the standard error message ('bar can't be empty') - ignoring my locale file.

I looked in the source and I couldn't see why this would be. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions