title: How to upload more than one image in Rails using simple_form?
body: <p>I'm using Rails 3.2, Carrierwave and simple_form.</p>
  
  <p>Currently, everything is working fine with one image upload with the following code:</p>
  
  <pre><code>&lt;%  @product.images.build if @product.images.blank? %&gt;
  &lt;%= f.simple_fields_for :images do |img| %&gt;
    &lt;% unless @product.images.first.file.blank? %&gt;
        &lt;div class="control-group"&gt;
           &lt;label class="controls"&gt;&lt;%= image_tag @product.images.first.file %&gt;&lt;/label&gt;
        &lt;/div&gt;   
        &lt;%= img.input :_destroy, :label =&gt; "Remove", :as =&gt; :boolean %&gt;
    &lt;% end %&gt;
        &lt;%= img.input :file, :as =&gt; :file, :label =&gt; "Picture", input_html: { class: "input-hundredpercent" } %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>However, how can I turn this nested form for multi image upload?</p>