Sign in

<% if @user.nil? %>

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

<% end %>
<%= form_for(:session, url: sessions_path) do |f| %> <%= f.label :email %> <%= f.text_field :email %> <%= 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 %>