【发布时间】:2017-05-15 14:39:21
【问题描述】:
我对 html 和 erb 还很陌生,我在使用自定义 simple_form 时遇到了问题。
我需要翻译这个 html.erb 输入
<%= object.input :attribute, label: 'mylabel' %>
到这个html输入类型
<label class="col-sm-3 control-label">mylabel</label>
<div class="col-sm-9">
<input class="form-control">
</div>
【问题讨论】:
标签: html ruby-on-rails twitter-bootstrap