Rails3: ActiveRecord model relationship with YAML file

Posted by moshimoshi on Stack Overflow See other posts from Stack Overflow or by moshimoshi
Published on 2010-05-31T21:41:03Z Indexed on 2010/05/31 21:43 UTC
Read the original article Hit count: 252

Hi,

I have an ActiveRecord model Group and a YAML table stored in config/users.yaml just like:

- {login: titi, password: 123456, group_id: 2}
- {login: toto, password: 987654, group_id: 7}

And I would like to link them by a sexy way. Can you help me?

Many thanks for any help!

© Stack Overflow or respective owner

Related posts about activerecord

Related posts about object-relational-mapping