programandoarg/pg_rails

View on GitHub
pg_layout/app/views/devise/confirmations/new.html.erb

Summary

Maintainability
Test Coverage
<%= pg_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
  <%= f.mensajes_de_error %>
  <%= f.full_error :confirmation_token %>

  <div class="form-inputs">
    <%= f.input :email,
                required: true,
                autofocus: true,
                value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email),
                input_html: { value: params[:email], autocomplete: "email" } %>
  </div>

  <div class="form-actions">
    <%= f.button :submit, t(".resend_confirmation_instructions") %>
  </div>
<% end %>

<%= render "devise/shared/links" %>