2009-08-04 15:22:11 +02:00
|
|
|
class FeedbackController < ApplicationController
|
|
|
|
|
|
|
|
def new
|
|
|
|
render :update do |page|
|
|
|
|
page.replace_html :ajax_box, :partial => "new"
|
|
|
|
page.show :ajax_box
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def create
|
|
|
|
unless params[:message].blank?
|
2011-05-11 10:53:18 +02:00
|
|
|
Mailer.feedback(current_user, params[:message]).deliver
|
2009-08-04 15:22:11 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
render :update do |page|
|
|
|
|
page.replace_html :ajax_box, :partial => "success"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|