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.

On Nov 23, 2007 12:40 PM, Dave M [email protected] wrote:

David.


Rafael Mueller
http://queroseragil.wordpress.com

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

Regards

Rafael Mueller