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 %>
Name
<%= f.text_field :name %>
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