given:
modelOne
belongs_to :modelTwo
field_one
modelTwo
has_many :modelOnes
field_two
how would I select both field_one
and field_two
using an includes
all of the answers I've found so far go along the lines of
modelTwo.includes(:modelOne).select(<:field_one, :field_two or 'model_twos.field_two, model_ones.field_one'>).references(:modelOne)
but all of them either give me an undefinedTable error on the included tables field or the results dont include the field on the included table