Ruby on rails 使用rails向引导标签添加跨距?

Ruby on rails 使用rails向引导标签添加跨距?,ruby-on-rails,twitter-bootstrap,bootstrap-form-helper,Ruby On Rails,Twitter Bootstrap,Bootstrap Form Helper,如何向使用引导窗体rails gems生成的引导窗体标签添加范围 这就是我到目前为止一直尝试但没有成功的方法: = bootstrap_form_for resource, url: wizard_path, method: :put, layout: :horizontal do |form| = form.select :cover_type, form.object.cover_types, {include_blank: true, label: "Cover Type <sp

如何向使用引导窗体rails gems生成的引导窗体标签添加范围

这就是我到目前为止一直尝试但没有成功的方法:

= bootstrap_form_for resource, url: wizard_path, method: :put, layout: :horizontal do |form|

 = form.select :cover_type, form.object.cover_types, {include_blank: true, label: "Cover Type <span class=fa fa-question-circle hidden-lg hidden-md></span>".html_safe}
=bootstrap\u form\u用于资源,url:向导路径,方法::put,布局::水平do | form|
=form.select:cover\u type,form.object.cover\u types,{include\u blank:true,标签:“cover type”.html\u safe}

谢谢这有什么问题吗

= bootstrap_form_for resource, url: wizard_path, method: :put, layout: :horizontal do |form|
  = form.label 
    Cover Type 
    %span.fa.fa-question-circle.hidden-lg.hidden-md
  = form.select :cover_type, form.object.cover_types, {include_blank: true}

你为什么不把标签放在
select
元素之前?

缩进在某个地方,我现在无法为你测试它。尝试弄乱
=form.label
行后的行间距。也许可以查阅haml文档。