This is a sample login form. You should customize it for your users.

<% if flash[:notice] %>

<%= flash[:notice] %>

<% end %> <%= form_for User.new, :url => session_path do |f| %>
<%= f.label :email, 'Email Address' %>
<%= f.text_field :email %>
<%= f.label :password %>
<%= f.password_field :password %>
<%= f.submit 'Log in' %>
<% end %>