foodsoft/app/controllers/feedback_controller.rb

14 lines
299 B
Ruby
Raw Permalink Normal View History

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