Topic: error messages error

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.

Where is it going wrong and why?

Neil

Re: error messages error

http://www.suffix.be/blog/error-messages-for-rails3

Joe got a job, on the day shift, at the Utility Muffin Research Kitchen, arrogantly twisting the sterile canvas snout of a fully charged icing anointment utensil.

Re: error messages error

Thanks for your help but that doesn't work. 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 either. I think the problem may be deeper. Do you know what files are used when displaying the errors. 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?

Last edited by gleb (2011-08-16 07:09:17)