scube-server/app/views/users/new.html.haml
Thibault Jouan 688a178376 Validate uniqueness of user email address
* Make user.email attribute unique
* Render validations error messages in users/new view
2011-09-08 23:09:58 +00:00

20 lines
472 B
Plaintext

= form_for(@user, :url => users_path) do |f|
- if @user.errors.any?
%ul
- @user.errors.full_messages.each do |m|
%li= m
%table
%tbody
%tr
%th= f.label :email
%td= f.text_field :email
%tr
%th= f.label :password
%td= f.password_field :password
%tr
%th= f.label :password_confirmation
%td= f.password_field :password_confirmation
%tfoot
%tr
%td= f.submit 'Sign up'