Rails validation error messages displays the error messages and array
I am working through the Ruby-on-Rails3 Tutorial Chapter 8. I have created a form that a user submits to sign up to a site. The validations are set in the model. They have been tested and are working. The problem is that when I display the validation error messages doing the following: <% if @user.errors.any? %> <div id="error_explanation"> <h2> <%= pluralize(@user.errors.count, "error")%> prohibited this user from being saved: </h2> <p>There were problems with the following fields:</p> <ul> <%= @user.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <%