Michael
> --
> You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group.
> To post to this group, send email to actives...@googlegroups.com.
> To unsubscribe from this group, send email to activescaffol...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
>
I have a data structure like that :
* Post (post/posts) which "has_many" post_meta_datas
* PostMetaData (post_meta_data/post_meta_datas) which "belongs_to" post
I write a simple controller for using activescaffold, and when I list my
posts, I get a nasty error "uninitialized constant Post::PostMetaDatum"
It looks like (I think...) that ActiveScaffold is trying to access the
children post_meta_data and use an inflexion "datum".
I don't understand since I haven't written any custom inflection, and
Ruby on Rails has generated the pluralized "datas" itself.
Can someone help me ?
Thanks.
Le 25/01/2011 09:43, vhochstein a �crit :
A backtrace with backtrace silencers removed would be useful.
>
> Thanks.
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com
I found my error and must apologize for suspecting ActiveScaffold.
It happen that I forgot an "s" on my "...data" where I should have
written a pluralized form, then Rails, trying to get the singular form,
used its rule converting plural "a" to singular "um", cf.
http://blog.luckyus.net/2009/02/03/rails-inflection-of-metadata-and-data/
It showed up in ActiveScaffold first, but it was not related.
Thank you again for the answers, and long live ActiveScaffold.
Le 26/01/2011 09:43, Sergio Cambra .:: entreCables S.L. ::. a �crit :
> On Martes, 25 de Enero de 2011 12:48:55 Yves-Emmanuel Jutard escribi�:
>> Hello,
>>
>> I have a data structure like that :
>> * Post (post/posts) which "has_many" post_meta_datas
>> * PostMetaData (post_meta_data/post_meta_datas) which "belongs_to" post
>>
>> I write a simple controller for using activescaffold, and when I list my
>> posts, I get a nasty error "uninitialized constant Post::PostMetaDatum"
>>
>> It looks like (I think...) that ActiveScaffold is trying to access the
>> children post_meta_data and use an inflexion "datum".
>>
>> I don't understand since I haven't written any custom inflection, and
>> Ruby on Rails has generated the pluralized "datas" itself.
>>
>> Can someone help me ?
> A backtrace with backtrace silencers removed would be useful.
>
>> Thanks.
>>
>> Le 25/01/2011 09:43, vhochstein a �crit :