I am very new at ruby - trying out rails and I am stuck already trying to do a simple register form:
<%= form_for :user, url: user_path do |f| %>
<p>
<%= f.label :email %><br>
<%= f.text_field :email %>
</p>
<p>
<%= f.label :password %><br>
<%= f.password_field :password %>
</p>
<p>
<%= f.submit %>
</p>
<% end %>
This is giving an error:
No route matches {:action=>"show", :controller=>"user"} missing required keys: [:id]
Can anyone explain what this actually means?
EDIT:
I am following this tutorial, only changing posts to user: http://guides.rubyonrails.org/getting_started.html