foodsoft/app/controllers/feedback_controller.rb
2012-11-10 17:05:43 +01:00

15 lines
352 B
Ruby

class FeedbackController < ApplicationController
def new
end
def create
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!"
else
render :action => 'new'
end
end
end