我正在使用simple_form,nested_form和Twitter Bootstrap,並試圖將nested_form中的「Remove Link」與對象放在同一行。使用simple_form,nested_form和Twitter添加內聯控件在rails中使用bootstrap
現在它看起來是這樣的:
,我希望它看起來像這樣:
這裏是我的代碼如下所示:
<%= cform.simple_fields_for :licensings do |lf| %>
<%= lf.input :state, :collection => us_states, :wrapper => false %>
<%= lf.link_to_remove "Remove this Licensing", :class => 'btn btn-mini btn-danger' %>
<% end %>
我試過把第二個link_to_remove在第一個lf.input的塊內,但實際下拉不出現。我查看了simple_form的代碼,但是我無法追蹤是否有辦法實現這一點。
怎麼樣在一個div包裹每使用CSS來處理的定位。 – diasks2 2012-07-16 09:30:40