Custom validation messages for Session model in Authlogic
What's the best way to override validation messages for login/password in the Session 开发者_C百科model in Authlogic? In the User model Authlogic provides the merge_ methods to override validation options, but Session does not have anything like that.
Any suggestions?
Authlogic has it's own I18n class. Maybe it will help you? It uses by default Rails' translation mechanism so it's pretty easy to use.
精彩评论