Skip to content

Instantly share code, notes, and snippets.

@azuby
Created August 16, 2011 21:19
Show Gist options
  • Save azuby/1150205 to your computer and use it in GitHub Desktop.
Save azuby/1150205 to your computer and use it in GitHub Desktop.
<section class="signup box">
<h1>Sign Up</h1>
<%= form_for(@user) do |f| %>
<%= render 'shared/error_messages', :object => f.object %>
<div class="field">
<%= f.label :first_name, "First Name:" %><br />
<%= f.text_field :first_name %>
</div>
<div class="field">
<%= f.label :last_name, "Last Name:" %><br />
<%= f.text_field :last_name %>
</div>
<div class="field">
<%= f.label :email, "Email:" %><br />
<%= f.text_field :email %>
</div>
<div class="field">
<%= f.label :password, "Password:" %><br />
<%= f.password_field :password %>
</div>
<div class="field">
<%= f.label :password_confirmation, "Confirm Password:" %><br />
<%= f.password_field :password_confirmation %>
</div>
<div class="field">
<%= f.label :role_id, "Select Role:" %><br />
<%= f.collection_select :role_id, Role.all, :id, :name, {:include_blank => 'Please Select'} %>
</div>
<div class="actions">
<%= f.submit "Create Account" %>
</div>
<% end %>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment