foodsoft/app/controllers/feedback_controller.rb

13 lines
280 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?
2015-01-13 18:02:30 +01:00
Mailer.feedback(current_user, params[:message]).deliver_now
redirect_to root_url, notice: t('.notice')
else
render action: 'new'
end
end
end