siddick/siddick

View on GitHub
app/views/user/passwords/new.html.erb

Summary

Maintainability
Test Coverage
<% content_for(:page_header) do %>
  <h1>Forgot your password?</h1>
<% end %>

<%= simple_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>

  <%= f.input :email %>

  <div class="form-actions">
    <%= f.submit "Recover my password", :class => "btn btn-primary" %>
    <%= link_to "Cancel", root_path, :class => "btn" %>
  </div>
<% end %>

<% content_for(:sidebar) do %>
  <%= render :partial => "user/shared/links" %>
<% end %>