Skip to content

Instantly share code, notes, and snippets.

@ruprict
Forked from kelhusseiny/new.html.erb
Created April 22, 2012 23:35
Show Gist options
  • Save ruprict/2467516 to your computer and use it in GitHub Desktop.
Save ruprict/2467516 to your computer and use it in GitHub Desktop.
<% @page_title = "UserAuth | Signup" %>
<div class="Sign_Form">
<h1>Sign Up</h1>
<%= form_for(:user, :url => {:controller => 'users', :action => create}) do |f| %>
<p> Username:</br> <%= f.text_field :username%> </p>
<p> Email:</br> <%= f.text_field :email%> </p>
<p> Password:</br> <%= f.password_field :password%></p>
<p> Password Confirmation:</br> <%= f.password_field :password_confirmation%> </p>
<%= f.submit :Signup %>
<% end %>
<% if @user.errors.any? %>
<ul class="Signup_Errors">
<% for message_error in @user.errors.full_messages %>
<li>* <%= message_error %></li>
<% end %>
</ul>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment