i18n feedback + controller
This commit is contained in:
parent
6a564f0a25
commit
5941bbbf4f
3 changed files with 15 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue