Forum: Rails France ActiveRecord.js

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A99870c1391c39da2089649745965bda?d=identicon&s=25 Jean-François Trân (Guest)
on 2009-01-14 12:42
(Received via mailing list)
var User = ActiveRecord.define('users',{
    username: '',
    email: ''
});

User.hasMany('articles');

http://www.aptana.com/blog/rjohnson/activerecord_j...

--
http://twitter.com/underflow_
Fc37191f4c6e09e30527df4913738aea?d=identicon&s=25 Nicolas Cavigneaux (Guest)
on 2009-01-14 13:02
(Received via mailing list)
Le 14 janv. 09 à 12:41, Jean-François Trân a écrit :

>
> var User = ActiveRecord.define('users',{
>    username: '',
>    email: ''
> });
>
> User.hasMany('articles');

Excellent ! Je vais tester ça cette après midi pour voir ce que ça
donne.
--
Nicolas Cavigneaux
http://www.bounga.org
http://www.cavigneaux.net
This topic is locked and can not be replied to.