views:

550

answers:

1

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?

A: 

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.

Thorbjørn Hermansen
While I have no explicit need for Internationalization (app will never be used outside the US), I suppose that's the only way to go about it in Authlogic. It seems inconsistent to me that the overrides would exist in the User model but not for Sessions. Thanks for your response!
cotopaxi