<%= image_tag @user.avatar.thumb.url %>
<%= form_for @user, url: avatar_path, html: { multipart: true } do |f| %> <%= f.file_field :avatar, id: 'avatar_field' %> <%= f.hidden_field :avatar_cache %> <%= f.submit "Upload" %> <% end %>