After reading : this
I still don't get it. in console:
puts Category.joins(:posts)
It perform join or left join on Category and Post.
However, all data returned is just columns in Category table. How to also get those column data in Post. ?
should I make another model to achieve this ?
after reading: this Is find_by_SQL is the only way ? I want ActiveRecord way if possible.
Thanks.