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