Hi,

I just generated a scaffold for some existing models I have, and
everything is working fine, except I get a 0 error message on the edit
view:

--------
0 errors prohibited this statistic type from being saved

There were problems with the following fields:
--------

I would have thought the default behaviour would be to hide this error
message if there are no errors, and that is my impression of what
happened when I have scaffolded from scratch before.

I am using Rails 2.1.1 and the edit view looks like this:

<% form_for(@statistic_type) do |f| %>
  <%= f.error_messages %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

etc.

Has anybody every encountered this before?

It's not a huge immediate problem as all the functionality seems to be
working, it's just that it will be confusing for users ...

Many thanks in advance
CHEERS> SAM
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to