2014-12-09 16:17:11 +00:00
|
|
|
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
2015-01-14 23:39:34 +00:00
|
|
|
<%= render 'flash' %>
|
2014-12-09 16:17:11 +00:00
|
|
|
|
2015-02-09 10:58:43 +00:00
|
|
|
<%= f_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
|
|
|
<%= f.error_messages %>
|
2014-12-09 16:17:11 +00:00
|
|
|
|
2015-02-09 10:58:43 +00:00
|
|
|
<%= f.password_field :password %>
|
|
|
|
<%= f.password_field :password_confirmation %>
|
2014-12-09 16:17:11 +00:00
|
|
|
|
2015-02-09 10:58:43 +00:00
|
|
|
<%= f.password_field :current_password %>
|
2014-12-09 19:34:50 +00:00
|
|
|
|
2014-12-09 21:32:54 +00:00
|
|
|
<%= f.file_field :avatar %>
|
|
|
|
|
2015-02-09 10:58:43 +00:00
|
|
|
<%= f.submit "Update" %>
|
2014-12-09 16:17:11 +00:00
|
|
|
<% end %>
|