Replaced protoype with jquery. Some fixes in mailer class.
This commit is contained in:
parent
bdb177dfa6
commit
2a72263bd3
28 changed files with 21207 additions and 10398 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue