[Nitro] Og questions

George Moschovitis george.moschovitis at gmail.com
Fri Aug 5 14:02:42 EDT 2005

>  - Why do I have to tell the relations to Og ?
> I've read that active-record uses a dictionnary to find singular and
> plural terms. I'm wondering if it could be used to tell the relations
> so that
> ... 
>   property :post, Post
> end

No in AR you have to use belongs_to, etc as well.
BTW, Og also uses the inflector so that you can say:

belongs_to Comment

instead of 

belongs_to :comments, Comment

>  - Is it possible to define customized data types and also can they
> encapsulate validation ?
> Depending of the field of application, you often have a set of data
> ... 
> That's all for today :-P

never actually tried that, but most probably it should work :) Try it!
In any case I 'll check this.



More information about the Nitro-general mailing list