<h2>Change your password</h2>

<p>
  Your password has been reset. Choose a new password below.
</p>

<%= error_messages_for :user %>

<%= form_for(:user,
            :url => user_password_path(@user, :token => @user.confirmation_token),
            :html => { :method => :put }) do |form| %>
  <div class="password_field">
    <%= form.label :password, "Choose password" %>
    <%= form.password_field :password %>
  </div>
  <div class="password_field">
    <%= form.label :password_confirmation, "Confirm password" %>
    <%= form.password_field :password_confirmation %>
  </div>
  <div class="submit_field">
    <%= form.submit "Save this password", :disable_with => "Please wait..." %>
  </div>
<% end %>

<h2>Change your password</h2>

<p>
  Your password has been reset. Choose a new password below.
</p>

<%= error_messages_for :user %>

<%= form_for(:user,
            :url => user_password_path(@user.id, :token => @user.confirmation_token),
            :html => { :method => :put }) do |form| %>
  <div class="password_field">
    <%= form.label :password, "Choose password" %>
    <%= form.password_field :password %>
  </div>
  <div class="password_field">
    <%= form.label :password_confirmation, "Confirm password" %>
    <%= form.password_field :password_confirmation %>
  </div>
  <div class="submit_field">
    <%= form.submit "Save this password", :disable_with => "Please wait..." %>
  </div>
<% end %>

Use ids in path helpers
Use ids in path helpers
