开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜