title: How to add styling to a single input in a form_for
body: <p>I'm using the rails framework with HAML and I have bootstrap setup. How would I format the field inputs seperately. I want the input field for name to be 60% of the screen float left and the input for price to be 25% of the screen and float right.</p>
  
  <p>I guess i'm asking how do i add classes to single inputs in a form_for.
  Thanks</p>
  
  <pre><code>= form_for @product,:url =&gt; products_path, :html =&gt; { :id =&gt; "fileupload", :multipart =&gt; true } do |f| 
    %p
      = f.label :name
      = f.text_field :name # i want to format this
    %p
      = f.label :price
      = f.text_field :price
  </code></pre>