<%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms' ) do %>
<% if @DelProducImage.present? %>
<% @DelProducImage.each_with_index do |newimg, index| %>
<%
if newimg.pmi_image.to_s.present?
chekpath = "#{Rails.root}/public/images/product/multi_image/#{newimg.pmi_filepath}/#{newimg.pmi_image}"
if File.file?(chekpath)
myimages = "#{root_url}images/product/multi_image/#{newimg.pmi_filepath}/#{newimg.pmi_image}"
end
end
%>
<%
if newimg.pmi_imgside.to_s.present?
%>
<%=newimg.pmi_imgside%> <% else %> <% end %>
<% end %>
<% else %>
<%
if @AddProduct
chekpath = "#{Rails.root}/public/images/product/#{@AddProduct.pd_img}"
if File.file?(chekpath)
myimages = "#{root_url}images/product/#{@AddProduct.pd_img}"
end
end
%>

<% end %>
<%=newimg.pmi_imgside%> <% else %> <% end %>
<%= render 'add_product/basic_information' %>
<%end%>