foodsoft/app/controllers/feedback_controller.rb

16 lines
352 B
Ruby
Raw Normal View History

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!"
else
render :action => 'new'
end
end
end