我想要这个结构:
<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>