tap/app/views/user_avatar/new.html.erb

14 lines
372 B
Plaintext
Raw Normal View History

2015-03-20 02:57:00 +00:00
<h2>Add avatar to <%= @user.uid %></h2>
<%= render 'flash' %>
2015-03-21 12:00:24 +00:00
<%= f_form_for @user, url: url_for(controller: 'user_avatar', action: 'create'), method: :post do |f| %>
2015-03-20 02:57:00 +00:00
<%= f.error_messages %>
2015-03-20 03:54:44 +00:00
<!-- To prevent an empty form submit from crashing -->
<%= f.hidden_field :generate_form, value: '1' %>
2015-03-20 02:57:00 +00:00
<%= f.file_field :avatar %>
<%= f.submit "Update" %>
<% end %>