[Nitro] many to many - advanced relationships
George Moschovitis
george.moschovitis at gmail.com
Sun Mar 11 03:33:00 EDT 2007
Welcome to this list,
Yeah, this more or less works like AR, ie:
class Article
joins_many :first_join, Category, :through => ArticleToCategory
end
for more examples check out, og/test/og/tc_join.rb
regards,
George.
On 3/11/07, Antoniolo <antoniolo at gmail.com> wrote:
> Hi Nitro-People :)
>
>
> I've been developing a game server app and I'd really like to upgrade my
> models from active-record to Og. I'm fascinated with Nitro and specially Og
> :). However, before doing that, I only need to know how to manage advanced
> many-to-many relationships, I mean, a table not only with foreign ids, but
> also with some fields.
>
> In active-record, we use has_many/through(since many_to_many cannot handle
> that). Is there a similar alternative in Og?
>
>
> Sorry for asking a newbie question, but I tried to find an entry about that
> ...
>
>
>
> Cheers, Antonio
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
--
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
More information about the Nitro-general
mailing list