foodsoft/app/controllers/feedback_controller.rb
2013-02-09 13:01:44 +07:00

15 lines
297 B
Ruby

class FeedbackController < ApplicationController
def new
end
def create
if params[:message].present?
Mailer.feedback(current_user, params[:message]).deliver
redirect_to root_url, notice: t('feedback.create.notice')
else
render :action => 'new'
end
end
end