Displaying 1 result from an estimated 1 matches for "save_review".
2006 Feb 10
2
Sudden Strange Webrick Error: Errno::ECONNABORTED
...gh ajax, and it is being process
properly - with all the interaction with the database happening
without problem. The response though, is this error:
Errno::ECONNABORTED
An established connection was aborted by the 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] = "Re...