1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

List names of error interpolation variables.

This commit is contained in:
Malcolm Locke 2016-08-05 11:39:47 +12:00
parent 320d40123a
commit 97b5341d6a

View file

@ -866,7 +866,7 @@ This way you can provide special translations for various error messages at diff
#### Error Message Interpolation
The translated model name, translated attribute name, and value are always available for interpolation.
The translated model name, translated attribute name, and value are always available for interpolation as `model`, `attribute` and `value` respectively.
So, for example, instead of the default error message `"cannot be blank"` you could use the attribute name like this : `"Please fill in your %{attribute}"`.