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? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.