Task F: Administration #0

Iros:

Change the views/users/edit.html.erb content to

<h1>Editing user</h1>
 
<% form_for(@user) do |f| %>
  <%= f.error_messages %>
 
    <p>
        <label for="user_name">Name: </label>
        <%= f.text_field :name, :size =>40 %>
    </p>
 
    <p>
        <label for="user_password">Password: </label>
        <%= f.password_field :password, :size =>40 %>
    </p>
 
    <p>
        <label for="user_password_confirmation">Confirm: </label>
        <%= f.password_field :password_confirmation, :size =>40 %>
    </p>
 
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>
 
<%= link_to 'Show', @user %> |
<%= link_to 'Back', users_path %>
page_revision: 2, last_edited: 1213459122|%e %b %Y, %H:%M %Z (%O ago)
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License