tap/app/views/user_avatar/new.html.erb
2015-03-20 04:54:44 +01:00

13 lines
334 B
Text

<h2>Add avatar to <%= @user.uid %></h2>
<%= render 'flash' %>
<%= f_form_for @user, url: '/user_avatar', method: :post do |f| %>
<%= f.error_messages %>
<!-- To prevent an empty form submit from crashing -->
<%= f.hidden_field :generate_form, value: '1' %>
<%= f.file_field :avatar %>
<%= f.submit "Update" %>
<% end %>