Question : Query method called with non-attribute argument(s)
Answered by : benedict-ouma
# Add Arel.sql() around your SQL Query
# eg
.order(Arel.sql('sum(table.column_x + table.column_y)'))
Source : | Last Update : Mon, 10 Oct 22
Answered by : benedict-ouma
# Add Arel.sql() around your SQL Query
# eg
.order(Arel.sql('sum(table.column_x + table.column_y)'))
Source : | Last Update : Mon, 10 Oct 22