players_data = self.find(:all,
:order => 'name',
:conditions => 'p.country = c.id and p.position = po.id',
:select => 'p.id as id, p.name as name, c.country as country, po.position as position, p.rank as rank',
:from => 'players as p, countries as c, positions as po'
)
--------------------------------
players_data.each do |row| #puts " The Row === #{row.country}" tmpArray = [] tmpArray[0] = row.id tmpArray[1] = row.name tmpArray[2] = row.country tmpArray[3] = row.position tmpArray[4] = row.rank
I'm unable to get the values for country and position. Please suggest.