Scaffold strangeness

I have a table called 'Books' with a field 'page_count'. When I
generate a scaffold for this table the '_form.rhtml' partial does not
include this field. Changing the name to 'page_coun' and it is
included in the form partial.

Any ideas why the word count in the field name is causing the scaffold
to miss it out?

Thanks,

David.

“xxx_count Maintains a counter cache for the child table xxx”

I think thats the problem.

http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html
Search for “counter_cache”

Regards