Sha256: 9c369c40d644dddc87382def5eae97c7c6de76d65fe60bd20ba4746e86171caf

Contents?: true

Size: 358 Bytes

Versions: 4

Compression:

Stored size: 358 Bytes

Contents

<%= image_tag avatarable.avatar_tmp_public_path(root_path), class: 'crop' %>

<%= form_for avatarable, url: avatar_path, multipart: true do |f| %>
  <% %w( x y w h ).each do |attr| %>
    <%= f.hidden_field "logo_crop_#{ attr }" %>
  <% end %>
    <%= f.hidden_field :avatar_tmp_basename %>

  <%= f.submit t('avatar.crop_submit'), class: "btn" %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
avatars_for_rails-1.0.3 app/views/avatars/_crop.html.erb
avatars_for_rails-1.0.2 app/views/avatars/_crop.html.erb
avatars_for_rails-1.0.1 app/views/avatars/_crop.html.erb
avatars_for_rails-1.0.0 app/views/avatars/_crop.html.erb