je la définition Rails suivants:: par des relations dans les rails: requête par attribut dans le tableau connexe
Class Book
string title
has_many readings
has_many users, :through => :readings
Class Reader
int rating
belongs_to :book
belongs_to :user
Class User
has_many readings
has_many books, through => :readings
Non Je veux interroger comme ceci:
Donne-moi toutes les lectures évaluations pour l'utilisateur A qui have book.title = "test"
Pourriez-vous m'aider? Merci!