Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 如何为简单表单引导gem使用输入附加类?_Ruby On Rails 3_Twitter Bootstrap_Simple Form - Fatal编程技术网

Ruby on rails 3 如何为简单表单引导gem使用输入附加类?

Ruby on rails 3 如何为简单表单引导gem使用输入附加类?,ruby-on-rails-3,twitter-bootstrap,simple-form,Ruby On Rails 3,Twitter Bootstrap,Simple Form,我想我错过了。for never演示了如何使用input append。我试过其他几种方法,但都不管用 <div class="controls"> <div class="input-append"> <input type="text" size="16" id="appendedInput" class="span2"> <span class="add-on">.00</span> </div>

我想我错过了。for never演示了如何使用
input append
。我试过其他几种方法,但都不管用

<div class="controls">
 <div class="input-append">
  <input type="text" size="16" id="appendedInput" class="span2">
   <span class="add-on">.00</span>
 </div>
   <span class="help-inline">Here's more help text</span>
</div>

.00
这里有更多的帮助文本
我需要这个,这样引导使用的错误消息就会显示出来,并且我能够以某种方式设计我的表单。我将如何在计算机上使用
附加组件
帮助内联


提前谢谢

好的,简单表单引导确实支持它。我应该像查看
prepend
一样查看
append
。例如:

<%= simple_form_for(@article, :html => { :class => 'form-horizontal' }) do |f| %>
  <%= f.input :name, :wrapper => :append, :class => "inline" do %>
   <%= f.input_field :name %>
    <%= content_tag :span, "?", :class => "add-on abbn" %>
   <% end %>
   <div class="form-actions">
    <%= f.button :submit, :class => 'btn-primary' %>
   </div>
<% end %>
{:class=>'form horizontal'})do | f |%>
:append,:class=>“inline”do%>
“附加缩写”%>
“btn主节点“%”