Replaced protoype with jquery. Some fixes in mailer class.

This commit is contained in:
benni 2011-05-11 15:14:39 +02:00
parent bdb177dfa6
commit 2a72263bd3
28 changed files with 21207 additions and 10398 deletions

View file

@ -1,19 +1,14 @@
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?
Mailer.feedback(current_user, params[:message]).deliver
end
render :update do |page|
page.replace_html :ajax_box, :partial => "success"
redirect_to new_feedback_url, :notice => 'The message was successfully delivered.'
else
render :action => 'new'
end
end