在正常的形式添加分隔符我已經使用這個:爲best_in_place寶石
<td>
<%= number_with_precision(approved_invoice.invoice_amount,
:precision =>2,
:delimiter => ",")
%>
</td>
這在適當的地方加上逗號。如果我要使用這個分隔符best_in_place寶石:
<td class="tax-particulars-align">
<%= best_in_place @invoice, :invoice_amount,
:display_as => :get_invoice_amount_with_precision,
:type => :input
%>
</td>
我可如何向量場逗號在我的編輯頁面?有人可以幫助我嗎?
誰能給我什麼建議嗎? – 2012-08-13 12:27:02