3

What's the best way to override validation messages for login/password in the Session 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?

4

1 回答 1

1

Authlogic 有它自己的I18n 类。也许它会帮助你?它默认使用Rails 的翻译机制,因此非常易于使用。

于 2010-01-02T20:21:49.693 回答