União de consulta ActiveRecord
Eu escrevi algumas consultas complexas (pelo menos para mim) com a interface de consulta do Ruby on Rail: watched_news_posts = Post.joins(:news => :watched).where(:watched => {:user_id => id}) watched_topic_posts = Post.joins(:post_topic_relationships => {:topic =>...