Does it help if u specify :class_name explicitely ?

==

On Wed, Apr 1, 2009 at 8:17 AM, Miles <[email protected]> wrote:
>
> I can't figure out what is wrong with a simple 1-many relationship -
> Note error is saying "Alternatif" when the model has "Alternative".
> Any ideas ?
>
> /usr/lib/ruby/gems/1.8/gems/dm-core-0.9.11/lib/dm-core/associations/
> relationship.rb:74:in `child_model': Cannot find the child_model
> Alternatif for Area (NameError)
>        from /usr/lib/ruby/gems/1.8/gems/dm-core-0.9.11/lib/dm-core/
> associations/relationship.rb:15:in `child_key'
>        from /usr/lib/ruby/gems/1.8/gems/dm-core-0.9.11/lib/dm-core/
> model.rb:224:in `properties_with_subclasses'
>        from /usr/lib/ruby/gems/1.8/gems/dm-core-0.9.11/lib/dm-core/
> model.rb:224:in `each_value'
>        from /usr/lib/ruby/gems/1.8/gems/dm-core-0.9.11/lib/dm-core/
> model.rb:224:in `properties_with_subclasses'
>        from /usr/lib/ruby/1.8/set.rb:188:in `each'
>        from /usr/lib/ruby/1.8/set.rb:188:in `each_key'
>        from /usr/lib/ruby/1.8/set.rb:188:in `each'
>        from /usr/lib/ruby/gems/1.8/gems/dm-core-0.9.11/lib/dm-core/
> model.rb:223:in `properties_with_subclasses'
>         ... 14 levels...
>
> >
>



-- 
http://ngty77.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to