I'm struggling to work out the correct place for storing object
validation error strings. Standard conventions would tell me to put all
validation in the model, and if necessary override the error message
using the :message symbol.
But I'm struggling to see how this works with I18N. All error messages
incorporate the (english) field name, and I can attach just one
(english) error message to each validation. Even without I18N issues,
the presentation might use different terminology than the model, or
terminology might even change during development.
I could create an exception class that deals with parameterized error
messages (does this already exist?), and then format these exceptions
in the controller before presentation. But this would seem to be
something that has likely been done before.
Does anyone have experience in this area? Should I just not worry about
I18N yet, given the low probability of building something that reaches
the point where this is a consideration?