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. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
"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 <moose56-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > 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. > > >-- Rafael Mueller http://queroseragil.wordpress.com --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html Search for "counter_cache" Regards -- Rafael Mueller http://queroseragil.wordpress.com On Nov 23, 2007 4:50 PM, Rafael Mueller <mueller182-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> "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 <moose56-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote: > > > > > 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. > > > > > > > > > -- > Rafael Mueller > http://queroseragil.wordpress.com--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---