4

Our client has decided that they would like all blank AR error messages to be changed from "can't be blank" to "must be completed" throughout the entire app.

What's the easiest Rails'y way of doing this?

yfeldblum
  • 65,165
  • 12
  • 129
  • 169
Neil Middleton
  • 22,105
  • 18
  • 80
  • 134

1 Answers1

13

Use config/locales/en.yml

Specifically, put the following in that file:

en:
  activerecord:
    errors:
      messages:
        blank: "must be completed"
James A. Rosen
  • 64,193
  • 61
  • 179
  • 261