Forum: Ruby on Rails How to use: INNER JOINS & IN

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rajesh GS (Guest)
on 2006-03-06 20:31
(Received via mailing list)

I am not clear about how to use INNER JOINS and IN(...) sub query in
rails. Is there a good tutorial which helps newbies step by step ?

I have a

model Library
model Authors
model Fictions

The relation maybe explained as:

Library has many fiction books
authors have many fictions

The authors table has information like full name, period of life,
country etc.

In that case, I want to select fictions from library, where the authors
are from countries US and FRANCE


This topic is locked and can not be replied to.