2014-10-20 21 views
-1

我需要在我.html.erb編寫HTML代碼:Filestyle引導上的回報率

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

但是,我不知道我應該怎麼寫數據代碼..

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

謝謝!

回答

0

它像任何其他屬性:

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

謝謝,它的工作原理 – 2014-10-20 19:38:10