limited query return info for rails