我正在使用Rails 4 ActiveAdmin和Money-Rails。有没有办法让一个文本行中有两个或更多输入框?
para "Please enter the amount"
f.input :amount_due_currency, :label => "Dollars ",:input_html => {:style => 'width:3%'}
para "and"
f.input :amount_due_cents, :label => "cents ", :input_html => {:style => 'width:10%'}
para "to deposit on your account."
我需要的输出应该看起来像这样:请在您的账户上存入__美元和__美分的金额。
我尝试了字符串插值,但失败了。有人可以帮帮我吗?