I am trying to create a scope that will order by categories.name in the class Service.
Categoria es el modelo que contiene el nombre de la categoria del servicio y quiero ordenar por el campo nombre de categoria, pero me sale el sguiente error:
wrong number of arguments (given 1, expected 0)
It’s wrong?
I have changed all the ways to call mysql order in rails 7.1.3 and I get the same error