Not being able to order by includes on Rails3
I have the following expression: user.clocks.includes(:users, :runs => :user_runs).find_by_id(params[:id]) which seems to work fine. But when I add an orders, like this: user.clocks.includes(:users, :runs => :user_runs).orders("users.names").find_by_id(params[:id]) it breaks with the following error: ActiveRecord::ConfigurationErr...