Displaying 1 result from an estimated 1 matches for "_image_url".
Did you mean:
image_url
2006 Mar 05
2
How to clean up this code?
...t;%= javascript_tag "var image_field_number=#{@file_fields_no}" %>
<label>Images</label>
<% if(controller.action_name == ''new'') %>
<% @product.images.each_with_index do |image, i| %>
<input type="file" id="images_<%=i%>_image_url"
name="images[<%=i%>][image_url]" size="30" /><br />
<% end %>
<% elsif(controller.action_name == ''edit'') %>
<% @product.images.each do |image|%>
<div id="image_<%=image.image_url%>">
<...