<%= form_for @user do |form| %> <% if @user.errors.any? %> <%= pluralize(@user.errors.count, "error") %> prevented your account from being created: <% end %>
<%= form.label :email %> <%= form.email_field :email %>
<%= form.label :password %> <%= form.password_field :password %>
<%= form.submit "Sign up" %>
<% end %>