views:

50

answers:

0

Hi,

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.

Someone give me a solution in stackoverflow but I don't know where I have to put the output with devise.

devise:
  failure:
    unconfirmed: 'You have to confirm your account before continuing. {{confirm_link}}.'
    confirm_link_text: "send confirmation instructions?"

and the output:

t('devise.failure.unconfirmed',
  :confirm_link => link_to(
                           t('devise.failure.confirm_link_text'),
                             new_user_confirmation_path).html_safe
                          )

Thanks a lot for your help!