Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created March 12, 2012 21:00
Show Gist options
  • Save pencilcheck/2024658 to your computer and use it in GitHub Desktop.
Save pencilcheck/2024658 to your computer and use it in GitHub Desktop.
= form_for user do |f|
- if user.errors.any?
.error_messages
Form is invalid
%ul
- for message in user.errors.full_messages
%li= message
.clearfix
= f.label :username
.input= f.text_field :username
.clearfix
= f.label :email
.input= f.text_field :email
.clearfix
= f.label :password
.input= f.password_field :password
.clearfix
= f.label :password_confirmation
.input= f.password_field :password_confirmation
.clearfix{:style => 'text-align: center; display: inline-block;'}
= f.label :recaptcha
.input= raw recaptcha_tags
.clearfix
= f.check_box :terms_of_service
I accept the terms of service.
.actions
= f.submit :class => 'btn primary', :value => 'Sign up'
= link_to 'Or sign in with services like Facebook', '/login'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment