7. Login I


#1

What's the difference between:

  <%= form_for(:session, url: login_path) do |f| %>
  <%= f.email_field :email, :placeholder => "Email %>
  <%= f.password_field :password, :placeholder => "Password %>
  <%= f.submit "Log in", class: "btn-submit" %>
  <% end %>

and

<%= form_for(:session, url: login_path) do |f| %>
<%= f.email_field :email, :placeholder => "Email" %>
<%= f.password_field :password, :placeholder => "Password" %>
<%= f.submit "Log in", class: "btn-submit" %>
<% end %>

The first one is my code, the second one is the code that they provided.
My code doesn't work but it looks like the exact same code, can anyone help me with this?

Thank you!


#2

I noticed that you're missing trailing quotes at the end of Email on the 2nd line of your code:
<%= f.email_field :email, :placeholder => "Email %>

and at the end of Password on the 3rd line:
<%= f.password_field :password, :placeholder => "Password %>

That's all that I can see that's different.