I have an app which I have upgraded to rails3. It is working fine but for displaying error messages.
Take i.e. new.html.erb. In the model I have several validations that work, they do not create a user if the entries are wrong. On submission it dutifully returns to new.html.erb but WITHOUT the nice red error messages.
I have been using
<% 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 %>
but that doesn't help. I think the problem may be deeper. Do you know what files are used when displaying the errors? Where does the error variable come from?. I have scaffold.css
Could it be a js problem? I am using jquery so do not have prototype or scriptaculous. Could that be causing the problem?