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.
Jean-François Trân (Guest)
on 2009-01-14 13: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_
Nicolas C. (Guest)
on 2009-01-14 14: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 C.
http://www.bounga.org
http://www.cavigneaux.net
This topic is locked and can not be replied to.