search for: active_hash

Displaying 1 result from an estimated 1 matches for "active_hash".

2010 May 31
5
ActiveRecord model relationship with YAML file
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? I would be happy if I can do this (as example): User.first.group.id # => 2 Many thanks for any help! -- Posted via