2009-08-04 15:22:11 +02:00
|
|
|
class FeedbackController < ApplicationController
|
2023-05-12 13:01:12 +02:00
|
|
|
def new; end
|
2009-08-04 15:22:11 +02:00
|
|
|
|
|
|
|
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
|
2023-05-12 13:01:12 +02:00
|
|
|
redirect_to root_url, notice: t('.notice')
|
2011-05-11 15:14:39 +02:00
|
|
|
else
|
2023-05-12 13:01:12 +02:00
|
|
|
render action: 'new'
|
2009-08-04 15:22:11 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|