Skip to content

Navigation Menu

Sign up

How To:I18n Message for Scoped Resources

Silas Baronda edited this page Mar 25, 2014 · 2 revisions

I have two scoped users: users and students.

I each have a different authentication key for logging in: email and user_id.

I want the different messages to popup when they try to login and fail.

 devise:
 failure:
 user:
 invalid: 'Invalid email or password.'
 student:
 invalid: 'Invalid user ID or password.'

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /