<%= image_tag @params, :id => "cropbox" %> <% %w[x y w h].each do |attribute| %> <%= hidden_field_tag "crop_#{attribute}" %> <% end %> <%= hidden_field_tag :cropping,{}, :value => true, :id => "temp_image" %>
<%= link_to "Cancel", "javascript:;", :remote => true, :class => "cancel_crop", :id => "cancel_crop" %> <%= link_to "Crop Image", "javascript:;", :remote => true, :id => "crop_image", :class => "crop_image" %>