Displaying 1 result from an estimated 1 matches for "deliver_alert_author".
2006 Feb 10
2
Sudden Strange Webrick Error: Errno::ECONNABORTED
...software in your host
machine. - connect(2)
Here is the controller method:
def save_review
review = Review.new(params[:review])
@chapter = Chapter.find(params[:chapterid])
@chapter.reviews << review
review.story_id = @chapter.story_id
if review.save
ReviewAlerts.deliver_alert_author(@chapter.story.user,
@chapter.story, review)
flash[:Ajax] = "Review Successfully Submited"
render :partial => ''options''
else
flash[:Ajax] = "There was a problem with your review"
render :partial => ''options''...