Rails/Devise - Customize flash message (devise.en.yml) with a link_to

Viewed 10260

I would like to customize the following flash msg provided by devise in the devise.en.yml file:

devise:
   failure:
      unconfirmed: 'You have to confirm your account before continuing.'

with ruby code in order to get a link to new_user_confirmation_path.

in other words, I want my flash message displays something like :

'You have to confirm your account before continuing. Didn't receive confirmation instructions?'

where 'Didn't receive confirmation instructions?' is a link to new_user_confirmation_path.

I would like to know if I can do this without editing the user controller cause Devise doesn't provide it by default.

Thanks for your answer!

5 Answers
Related