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?
|
|
|
|
Mailer.feedback(FoodsoftConfig.scope, current_user, params[:message]).deliver
|
|
|
|
redirect_to root_url, :notice => "Das Feedback wurde erfolgreich verschickt. Vielen Dank!"
|
2011-05-11 15:14:39 +02:00
|
|
|
else
|
|
|
|
render :action => 'new'
|
2009-08-04 15:22:11 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|