hi my model has_many files (Like articles has many images) and many other relation(Category, User, Tag, ....) i want to show first file of has many in list how can i do that?
Run the query the other way around, like "show the first image that has "this" article as it's parent". Child records of an object are always fetched as a complete set, even if you only want to display one of them.