<h1>Login</h1>
<%= form_tag '/login', method: :post do %>
  <%= label_tag :email %>
  <%= text_field_tag :email %> <br>

  <%= label_tag :password %>
  <%= password_field_tag :password %>

  <%= submit_tag %>
<% end %>
<h1>Login</h1>
<%= form_tag login_path, method: :post do %>
  <%= label_tag :email %>
  <%= text_field_tag :email %> <br>

  <%= label_tag :password %>
  <%= password_field_tag :password %>

  <%= submit_tag %>
<% end %>
Change hard-coded path to login_path helper.
Change hard-coded path to login_path helper.
