Displaying 1 result from an estimated 1 matches for "book_publisher_id".
2005 Mar 08
19
find_by_sql ON STEROID possible?
...model
active record is based on NAMING CONVENTIONS so why can''t we do that?
(no matter if it''s fastidious because it''s optimization time of the dev process
!!!!!!)
Books.find_by_sql(
"SELECT b.*,
p.name as book_publisher_name,
p.id as book_publisher_id,
a.name as book_author_name,
a.id as book_author_id,
u.name as author_university_name,
u.id as author_university_id
FROM books b,
publishers p,
authors a,
authors_books ab,
universities u
WHERE...