Skip to content

Instantly share code, notes, and snippets.

@jcap49
Created October 23, 2013 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcap49/7111116 to your computer and use it in GitHub Desktop.
Save jcap49/7111116 to your computer and use it in GitHub Desktop.
= 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