foodsoft/app/controllers/feedback_controller.rb

16 lines
324 B
Ruby
Raw Normal View History

class FeedbackController < ApplicationController
def new
end
def create
unless params[:message].blank?
2011-05-11 10:53:18 +02:00
Mailer.feedback(current_user, params[:message]).deliver
redirect_to new_feedback_url, :notice => 'The message was successfully delivered.'
else
render :action => 'new'
end
end
end