Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created May 10, 2009 03:16
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 mrchrisadams/109487 to your computer and use it in GitHub Desktop.
Save mrchrisadams/109487 to your computer and use it in GitHub Desktop.
<% form_for @user do |f| %>
<div class="error">
<%= f.error_messages %>
</div>
<div class="sign_up_screen" id="sign_up_one">
<p>I’d like my <%= f.label :user_name, "nag name" %> to be
<%= f.text_field :user_name %>,</p>
<p> but <%= f.label :name, "my real name" %> <span>is</span>
<%= f.label :first_name, '(first name)', :class => 'hidden' %>
<%= f.text_field :first_name %>
<%= f.label :last_name, '(last name)', :class => 'hidden' %>
<%= f.text_field :last_name %>. </p>
<p>You can contact <span>me at</span>
<%= f.text_field :email_name %> @ <%= f.text_field :email_domain %>
<p>I'd also like my password to be <%= f.password_field :password %>, and here it is one more time <%= f.label :password_confirmation, "as confirmation" %> <%= f.password_field :password_confirmation %></p>
</div>
<div id="form_submit">
<%= image_submit_tag("icons/submit.png", :id => "submit", :name => "submit", :title => "submit", :class => "forward", :disabled => false) %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment