Skip to content

Instantly share code, notes, and snippets.

@rubytastic
Created September 30, 2011 09:10
Show Gist options
  • Save rubytastic/1253184 to your computer and use it in GitHub Desktop.
Save rubytastic/1253184 to your computer and use it in GitHub Desktop.
- title t(:title, :scope => :register)
%h1= yield(:title)
#col1
%p
=t(:welcome_text, :scope => :register)
= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
= devise_error_messages!
= f.input :username, :label => 'Username'
= f.input :email, :label => 'Email'
= f.input :password, :label => 'Password'
= f.input :password_confirmation, :label => 'Password confirm'
// start fields for profile
= f.fields_for :profile do |f|
= f.label :bod_day
= f.text_field :bod_day
// end fields for profile
= f.button :submit, t(:submit, :scope => :register)
%p#small
=t(:terms, :scope => :register)
#or
%p
=t(:or, :scope => :register)
#col2
%p col 2
= render :partial => "devise/shared/links"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment