Use mailto in error message

This commit is contained in:
Paul Chavard 2018-08-30 12:47:45 +01:00
parent 441e123e8a
commit b60805a54c
2 changed files with 6 additions and 1 deletions

View file

@ -8,6 +8,11 @@
.alert-danger {
background-color: $medium-red;
color: #FFFFFF;
a {
color: #FFFFFF;
text-decoration: underline;
}
}
.alert-success {

View file

@ -16,7 +16,7 @@ class SupportController < ApplicationController
redirect_to root_path
else
setup_context
flash.now.alert = "Une erreur est survenue. Vous pouvez nous contactez à #{CONTACT_EMAIL}."
flash.now.alert = "Une erreur est survenue. Vous pouvez nous contactez à #{view_context.mail_to(CONTACT_EMAIL)}."
render :index
end