<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>
<%= f.label :name %><br />
<%= f.text_field :name %>
<%= f.label :email %><br />
<%= f.text_field :email %>
<%= f.label :password %><br />
<%= f.text_field :password %>
<%= f.label :confirm_password %><br />
<%= f.text_field :confirm_password %>
<%= f.submit %>
我被困了......
我认为这是你要求的代码......
请仔细阅读并告知我是否需要进行任何更正......
谢谢