%= render :partial => 'blog/admin/shared/post_tabs', :locals => {:current => "Images"} %> <% if @post_product.try(:errors).present? %> <%= render 'shared/error_messages', :target => @post_product %> <% end %> <% form_for([:admin, @post.id, @post_product], :url => admin_post_product_url(@post, @post_product), :html => { :multipart => true }) do |f| %>
<%= label_tag ("thumbnail") %>:
<%= link_to(product_tag(@post_product.attachment.url(:mini)), @post_product.attachment.url(:product)) %>