ruby-on-rails,ruby-on-rails-4,smart-listing
thanks for suggestion. solved the issue by moving //= require smart_listing line in assets to the bottom before //= require_tree . line....
mysql,ruby-on-rails,gem,smart-listing
So there isn't any way to do exactly what I'm asking the way I'm asking for it to be done (basically combining Ruby code with SQL). However, there is still a solution! Since smart_listing does support explicit sorting (sorting by joined column names, i.e. [:created_at, 'orders.items.created_at'] if orders.joins(:items)), you can...