Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h3>Product Images</h3>
- <div id="productimagefields">
- <% fields_for :photo do |f| %>
- <p>Upload this product's Primary Photo:<br />
- <%= f.file_field :uploaded_data %>
- </p>
- <% end %>
- </div>
- <% @field_counter = 2 %>
- <p><%= link_to_function 'Add another photo' do |page|
- page.insert_html :bottom, :productimagefields, :partial => 'product_image_field', :locals => { :field_counter => @field_counter }
- @field_counter = @field_counter + 1
- end %></p>
Add Comment
Please, Sign In to add comment