search for: newth

Displaying 2 results from an estimated 2 matches for "newth".

Did you mean: newt
2006 Feb 27
4
2 belongs_to to the same parent table
Hello! I have 2 table: users and buddies User: id, name, ... Buddy: id, user_id, user_buddy_id, ... So if you have 2 users 1,jack and 2,fred and fred is a buddy of jack, there is a Buddy object: id=1, user_id=1, user_buddy_id=2 I can declare only one belongs_to in Buddy and one has_many in User. And there is conflict if I had the second one (the first one is discarded) class User has_many
2006 Jul 12
6
Copying Records
This might seem like a silly quesiton but it''s been baffling me all day! I want to copy all records matching certain criteria from table A to table B. I know how to do his with SQL but not with RoR. -- Posted via http://www.ruby-forum.com/.