0
在我的ruby on rails應用程序中,我有標題dropdownlist,它應該在添加新標題後刷新。在添加新條目後刷新dropdownlist
我嘗試了下面的ajax調用成功,但它不工作。形式
<tr style="height:40px;">
<td width="35%">
<%= f.label :header_id,"Header" %>
</td>
<td>
<%= f.select :header_id,Header.all.collect { |mp| [mp.header, mp.header_id]}, {:prompt=>"Please select"},:id=>"proj_qn_header_id" %>
</td>
</tr>