Created
October 23, 2013 01:38
-
-
Save jcap49/7111116 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for @user, url: register_user_path do |f| | |
- if @user.errors.any? | |
#error_explanation | |
%h2= "#{pluralize(@user.errors.count, "error")} prohibited this user from being saved:" | |
%%ul | |
- @user.errors.full_messages.each do |msg| | |
%li= msg | |
.field | |
= f.text_field :email, placeholder: 'Email' | |
.field#send_time.time.ui-timepicker-input | |
= f.password_field :password, placeholder: 'Password' | |
.field | |
= f.password_field :password_confirmation, placeholder: 'Password Confirmation' | |
.actions | |
= f.submit class: 'button', id: 'landing_submit', value: 'Sign up' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment