2013-02-14 23 views
3

Ruby on Rails的未定義的方法`_delete' 在軌版本2.3.15工作正常2.3.5Ruby on Rails的未定義的方法`_delete '在軌版本2.3.15工作正常2.3.5

ActionView::TemplateError (undefined method `_delete' for #<Exam:0x709f33664f48>) on line #105 of app/views/exam/_exam_marks_form.erb: 
102:   <td class="col-1"> 
103:   <div class="label-field-pair2"> 
104:    <div class="text-input-bg2"> 
105:    <%= exam_form.check_box :_delete %> 
106:    </div> 
107:   </div> 
108:   </td> 

回答

6

Rails在2.3.8的時間範圍內改變了這一點。更改:_delete:_destroy,你應該很好。

相關問題