daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <h3>Product Images</h3>
  2.         <div id="productimagefields">
  3.              <% fields_for :photo do |f| %>
  4.                 <p>Upload this product's Primary Photo:<br />
  5.                   <%= f.file_field :uploaded_data %>
  6.                 </p>
  7.              <% end %>
  8.         </div>
  9.    
  10.     <% @field_counter = 2 %>
  11.         <p><%= link_to_function 'Add another photo' do |page|
  12.             page.insert_html :bottom, :productimagefields, :partial => 'product_image_field', :locals => { :field_counter => @field_counter }
  13.             @field_counter = @field_counter + 1
  14.             end %></p>
RAW Paste Data
Top