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

<% if flash[:notice] %>

<%= flash[:notice] %>

<% end %> <% if @redirect_url %>

We need you to log in before we can show you the page that you are trying to view.

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