Skip to content

Instantly share code, notes, and snippets.

@andyl
Created June 17, 2011 22:19
Show Gist options
  • Save andyl/1032488 to your computer and use it in GitHub Desktop.
Save andyl/1032488 to your computer and use it in GitHub Desktop.
<h2>Log In</h2>
<%= form_tag sessions_path do %>
<div class="field">
<%= label_tag :user_name %><br>
<%= text_field_tag :user_name, params['user_name'] %>
</div>
<p></p>
<div class="field">
<%= label_tag :password %><br/>
<%= password_field_tag :password %>
</div>
<p></p>
<div class="field">
<%= check_box_tag :remember_me %>
<%= label_tag "Remember me?" %>
</div>
<p></p>
<div class="actions"><%= submit_tag "Log in" %></div>
<% end %>
<p></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment