Posts by Catarina Silva • 41 points
2 posts
-
1
votes2
answers86
viewsA: Fetch the various fields from the query
I’ve found it enough to do: @tudo = @tudo.select("genes.name as genename")
-
3
votes2
answers86
viewsQ: Fetch the various fields from the query
I have this darling: @tudo = Isolated.joins("LEFT JOIN resists ON resists.isolated_id = isolateds.id").joins("LEFT JOIN genes ON genes.isolated_id = isolateds.id LEFT JOIN stats ON stats.gene_id =…