Displaying 1 result from an estimated 1 matches for "e1faed67".
2006 Jul 07
1
Multiple table SQL query in rails?
Table A has many table B''s. So the foreign key in table B is a_id. I
want to select a single record from table A that does not have any
table B''s. The problem is that the foreign key is in table B. Is
there a simple way to do this with the find method in active record?
Or do I need to select all and loop through them all and check until
I find one?
Thanks for your