2012-12-24 30 views
0

我有一個嵌套資源form_for。這裏是嵌套的路線來演示我的設置。form_for提交帶來錯誤324.

resources :residents do 
    resources :assessment_plan_forms 
    resources :blood_pressure_record_forms 
    resources :fund_record_form1s 
    resources :fund_record_form2s 
    resources :id_record_forms 
    resources :incident_accident_forms 
    resources :med_record_forms 
    resources :personal_care_forms 
    resources :resident_care_agreement_forms 
    resources :visitation_appointment_forms 
    resources :weight_record_forms 
    end 

我可以從駐地/顯示視圖(它提供了所有你在嵌套的資源看片斷的形式)來,沒有任何問題assessment_plan_form /新視圖成功導航。

但是,當我單擊窗體上的提交按鈕時,我收到以下錯誤。

No data received 
Unable to load the webpage because the server sent no data. 
Here are some suggestions: 
Reload this webpage later. 
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data. 

當我點擊reload超鏈接chrome provide,我能夠成功重定向到assessment_plan_form/show視圖。

我希望能夠深入瞭解哪裏出了問題以及解決方案以解決此問題。

我已經包括了以下要點鏈接供您考慮。如果我需要提供更多信息,請告訴我,我會將其提供。

Gist Link - includes code snippets, server log, and routes

+0

我想解釋爲什麼我的問題是downvoted。由於對貢獻者不明顯,我會解釋。由於在匿名批評中沒有收到任何「建設性」的東西,我不幸地更可能重複所謂的天真犯罪。 – sirramongabriel

回答

0

雖然我不知道爲什麼這個作品,這裏是我用來去除錯誤324(淨值:: ERR_EMPTY_RESPONSE)解決方案:服務器關閉了連接不發送任何數據。

首先,這個問題發生在Chrome 17 & Chrome 23上。當我將瘦服務器添加到我的Gemfile時,我運行包&重啓了服務器。

這刪除了324錯誤,但目前我無法將提交按鈕重定向到show操作。沒有生成異常,如果我在模型中添加表單驗證,頁面只會刷新。

我將繼續排查問題,並在提交按鈕上創建一個新問題,如果需要的話,不要重定向。