これをRailsに変えたいform_for
:
<input type="text" class="auto" data-a-sign="$ ">
現在 HAML を使用しており、コードは次のようになります。
= form_for @foto,:url => products_path, :html => { :multipart => true } do |f|
%p
= f.label :price
= f.text_field :price
%p.button
= f.submit