search for: belolng

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

Did you mean: belong
2006 Oct 19
3
joins and table names in ferret
...le tables as you would in a normal SQL call. For example, let''s say I have two ActiveRecord classes, Book, and Author, where Book has a ''description'' field and Author has a ''name'' field, and where Book has a belongs_to relationship with Author (Book belolngs to Author, Author has_many Books). Let''s say I''d like to find all Books with the term ''programming'' in their description that are by people with ''Smith'' in their name. I''d like to do something like this: Book.find_by_contents(&qu...