How to change flash [: notice] design in rails

I am using rails 2.3.5 and building 1.0.6. I have users verifying an email account. However, when a new user logs in to the flash notification, it says “The user was created successfully”, which was, but he doesn’t tell the user that they need to confirm their email if they do not try to log in and invent the notification about the flash. Don't explain what they need to confirm by email.

Where is this flash notification located in the gem and how can I change it? Or what is the best way to solve this problem.

+5
source share
2 answers

Just enable i18n in your project and edit the default locale (en.devise.yml) or download new ones from https://github.com/plataformatec/devise/wiki/i18n

+9
source

Pop-up messages for development gems can be changed in the locale directory (YourRailsApp / config / locales / devise.en.yml).

Just change devise.en.ymlto your liking, in fact he does not have any programming knowledge.

If you are new to rails, the locales directory is for I18n translations, which is a rail for translating words, although statically, but it works well for simple projects.

+7
source

All Articles