ror4 First argument in form cannot contain nil or be empty
问题 When I click the edit I get: First argument in form cannot contain nil or be empty in bets/app/views/users/_form.html.erb users/_form <%= form_for(@user) do |f| %> <% if @user.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2> <ul> <% @user.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <p> <%= f.label :name, "Username" %><br /> <%= f.text_field :name %> </p> <p>