tap/app/views/devise/registrations/edit.html.erb
2015-03-19 14:59:37 +01:00

15 lines
427 B
Text

<h2>Edit <%= resource_name.to_s.humanize %></h2>
<%= render 'flash' %>
<%= f_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
<%= f.error_messages %>
<%= f.password_field :password %>
<%= f.password_field :password_confirmation %>
<%= f.password_field :current_password %>
<%= f.file_field :avatar %>
<%= f.submit "Update" %>
<% end %>