public
Last active

  • Download Gist
new.html.erb
HTML+ERB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.