# 0 errors prohibited this model from being saved

**URL:** <https://www.ruby-forum.com/t/0-errors-prohibited-this-model-from-being-saved/152617>\
**Category:** Rails\
**Created:** [November 5, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/0-errors-prohibited-this-model-from-being-saved/152617 "2008-11-05T17:40:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tansaku](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ebca7d/32.png) [@tansaku](https://www.ruby-forum.com/u/tansaku)\
**Post date:** [November 5, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/0-errors-prohibited-this-model-from-being-saved/152617/1 "2008-11-05T17:40:25Z")

</div>

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
