ArturT/Railstom

View on GitHub
app/views/devise/registrations/new.html.erb

Summary

Maintainability
Test Coverage
<h2><%= t('.sign_up', :default => "Sign up") %></h2>

<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
  <%= f.error_notification %>

  <div class="form-inputs">
    <%= f.input :email, :required => true, :autofocus => true, placeholder: t('layouts.application.placeholders.email') %>
    <%= f.input :password, :required => true, placeholder: t('layouts.application.placeholders.password') %>
    <%= f.input :password_confirmation, :required => true, placeholder: t('layouts.application.placeholders.password') %>
  </div>

  <div class="form-actions">
    <%= f.button :submit, t('.sign_up', :default => "Sign up") %>
  </div>
<% end %>

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