Sign in

<% if @user.nil? %>

The email or password is incorrect. Verify that CAPS LOCK is not on, and then retype the current email and password.

<% end %>
<%= form_for(:session, url: sessions_path) do |f| %> <%= f.label :email %> <%= f.text_field :email%> <%= f.label :user_name %> <%= f.text_field :user_name%> <%= f.label :password %> <%= f.password_field :password %> <%= f.submit "Sign in", class: "btn btn-large btn-primary" %> <% end %>

New user? <%= link_to "Sign up now!", new_user_path %>