Rails Error :Column 'id' in order clause is ambiguous
错误Column'id'inorderclauseisambiguous易出现在p=Product.find(:all,:include=>:kind,:order=>"iddesc")类似的语句上,用include包含了一个leftjoin对象,所以id可能存在于多个表内,就引起了二义性修改为p=Product.find(:all,:include=>:kind,:order=>"product