在使用Simple_form_for时,在我的数字字段中,使用Google Chrome时,字段旁边会显示滚动条.
我怎么能阻止他们出现?

我试图在我的表单中创建一个使用简单表单+引导程序的元素.这个想法是允许用户从下拉列表中选择一种货币.
Customer_currency可选择美元 - 美元,LRD - 利比里亚元等.
我在表单中使用了以下内容
但是,它不起作用,我看到的只是在我的表单中有一个选项但没有标签的下拉(不在位置).
如何使用简单的表单创建带有标签的良好选择元素
<%= simple_form_for @customer, :html => { :class => 'form-horizontal' } do |f| %>
<%= f.input :name %>
<%= f.select :customer_currency, [['UGX- Uganda Shillings',1],['USD- US Dollars',2]] %>
<%= f.input :payment_terms %>
<%= f.input :billing_address %>
<%= f.input :first_name %>
<%= f.input :last_name %>
<%= f.input :mobile %>
<%= f.input :email %>
<div class="form-actions">
<%= f.button :submit, :class => 'btn-primary' %>
<%= link_to t('.cancel', :default => t("helpers.links.cancel")),
customers_path, :class => 'btn' %>
</div> …Run Code Online (Sandbox Code Playgroud) 我正在使用引导日期选择器来使用simple_form_for在表单中选择日期.例如
<%= f.input :payment_date, as: :string, input_html: { class: "datepicker" } %>
Run Code Online (Sandbox Code Playgroud)
我的日期选择器使用dd-mm-yyyy的格式
我想使用simple_form_for将今天的日期设置为表单中的默认值,关于如何做到这一点的任何想法?