【问题标题】:Filestyle Bootstrap on RoR [duplicate]RoR 上的 Filestyle Bootstrap [重复]
【发布时间】:2014-10-20 18:06:00
【问题描述】:

我需要在我的 .html.erb 中编写这段 HTML 代码:

<input type="file" class="filestyle" data-icon="false" data-classButton="btn btn-default" data-classInput="form-control inline input-s">

但是,我不知道我应该如何编写 data 代码..

<%= f.file_field :image, class:'filestyle'     %>

谢谢!

【问题讨论】:

    标签: ruby-on-rails twitter-bootstrap


    【解决方案1】:

    它就像任何其他属性:

    <%= f.file_field :image, class:'filestyle', 'data-icon' => false, 'data-classButton' => 'btn-default', 'data-classInput' => 'form-control inline input-s' %>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-11
      • 1970-01-01
      • 2018-09-05
      • 1970-01-01
      • 2014-06-01
      相关资源
      最近更新 更多