<h2>Login:</h2>
<%= form_tag sessions_path do |f| %>

  <div>
  <%= f.label :name %>:
  <%= f.text_field :name %>
  </div>

  <div>
  <%= f.label :email %>
  <%= f.text_field :email %>
  </div>

  <div>
  <%= f.label :password %>
  <%= f.password_field :password %>
  </div>

  <%= f.submit 'Log In'%>

<% end %>
<h2>Login:</h2>
<%= form_tag sessions_path do |f| %>

  <div>
  Username: <%= text_field_tag :name %>
  </div>

  <div>
  Email: <%= email_field_tag :email %>
  </div>

  <div>
  Password: <%= password_field_tag :password %>
  </div>

  <%= submit_tag 'Log In'%>

<% end %>
Change from form_for to form_tag
Change from form_for to form_tag
