2009-08-04 15:22:11 +02:00
|
|
|
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
|
2011-05-11 15:14:39 +02:00
|
|
|
redirect_to new_feedback_url, :notice => 'The message was successfully delivered.'
|
|
|
|
else
|
|
|
|
render :action => 'new'
|
2009-08-04 15:22:11 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|