Created
May 7, 2013 05:02
-
-
Save tyrotinal/5530358 to your computer and use it in GitHub Desktop.
rails: form helper 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Register</h2> | |
<%= form_for :user do |form| %> | |
<fieldset> | |
<legend>Enter Your Details</legend> | |
<div class="form_row"> | |
<label for="screen_name">Screen name:</label> | |
<%= form.text_field :screen_name %> | |
</div> | |
<div class="form_row"> | |
<label for="email">Email:</label> | |
<%= form.text_field :email %> | |
</div> | |
<div class="form_row"> | |
<label for="password">Password:</label> | |
<%= form.password_field :password %> | |
</div> | |
<div class="form_row"> | |
<%= submit_tag "Register!", :class => "submit" %> | |
</div> | |
</fieldset> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment