Forum: Ruby on Rails Trouble redefining ActiveRecord default error messages

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Juan Lupión (Guest)
on 2006-03-19 14:34
(Received via mailing list)

I'm redefining ActiveRecord::Errors.default_error_messages  in order
to translate ActiveRecord's validation messages.   I'm putting the
redefinition in config/environment.rb.

The trouble is that I've found that this approach works as long as I'm
running in development mode under WEBrick, but not on my ISP under
production mode.  I guess the issue should be related to caching Ruby
classes, but I can't quite figure out what's going wrong.  Any help?

This topic is locked and can not be replied to.