2009-08-04 15:22:11 +02:00
|
|
|
class FeedbackController < ApplicationController
|
|
|
|
def new
|
|
|
|
end
|
|
|
|
|
|
|
|
def create
|
2012-11-10 17:05:43 +01:00
|
|
|
if params[:message].present?
|
2015-01-13 18:02:30 +01:00
|
|
|
Mailer.feedback(current_user, params[:message]).deliver_now
|
2013-02-09 07:01:44 +01:00
|
|
|
redirect_to root_url, notice: t('feedback.create.notice')
|
2011-05-11 15:14:39 +02:00
|
|
|
else
|
|
|
|
render :action => 'new'
|
2009-08-04 15:22:11 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|