2
在這個線程中知道how to make a eager load in rails,但是如何做到這一點嵌套?鐵軌上的深切渴望
即:
# get category, random product and random photo
@category = Category.find(params[:id], :include => random_product, :include => random_photo)
我不知道如果我解釋...
在此先感謝。