ruby-rcade/RubyGameDev.com

View on GitHub
app/views/passwords/edit.html.erb

Summary

Maintainability
Test Coverage
<div id="clearance" class="password-reset">
  <h2><%= t '.title' %></h2>

  <p><%= t '.description' %></p>

  <%= form_for :password_reset,
        :url => user_password_path(@user, :token => @user.confirmation_token),
        :html => { :method => :put } do |form| %>
    <div class="password-field">
      <%= form.label :password %>
      <%= form.password_field :password %>
    </div>

    <div class="submit-field">
      <%= form.submit %>
    </div>
  <% end %>
</div>