<% content_for :nav do %> <%= link_to 'Cancel', @user %> <% end %>
<%= form_for(@user) do |f| %>
Name: <%=f.text_field :name, {readonly: "true"}%>
Email: <%=f.text_field :email, {readonly: "true"}%>
<%= f.label :password %>: <%= f.password_field :password %>
<%= f.label :password_confirmation %>: <%= f.password_field :password_confirmation %>
<%= f.submit "Update Password"%>
<% end %>