i18n feedback + controller

This commit is contained in:
Manuel Wiedenmann 2013-02-09 13:01:44 +07:00
parent 6a564f0a25
commit 5941bbbf4f
3 changed files with 15 additions and 7 deletions

View file

@ -6,7 +6,7 @@ class FeedbackController < ApplicationController
def create
if params[:message].present?
Mailer.feedback(current_user, params[:message]).deliver
redirect_to root_url, :notice => "Das Feedback wurde erfolgreich verschickt. Vielen Dank!"
redirect_to root_url, notice: t('feedback.create.notice')
else
render :action => 'new'
end