Forum: Ruby on Rails Trouble redefining ActiveRecord default error messages

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
642a55efaf21673ee542bc17e64c8ed1?d=identicon&s=25 Juan Lupión (Guest)
on 2006-03-19 13:34
(Received via mailing list)
Hello,

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.