1

我想得到这个结构:

<label for="form-field-1" class="col-sm-3 control-label no-padding-right">Text Field</label>
<div class="col-sm-9">
  <div class="input string optional url_command_model_name"><input type="text" name="url_command[model_name]" id="url_command_model_name" class="string optional"></div>
</div>

但是当我使用 时= f.input :model_name,我得到了这个 HTML:

<div class="input string optional url_command_model_name">
  <label for="url_command_model_name" class="string optional control-label">Model name</label>
  <input type="text" name="url_command[model_name]" id="url_command_model_name" class="string optional">
</div>
4

0 回答 0