From: Mark Mr Date: 2008-01-16T01:18:39+09:00 Subject: Re: Loop question Yeah, they are aliases from what I read in the documentation but i didn't change anything. I think it might be the fact that i already used .find in the line, because here's the actual line of code i ended up using. ans = Question.find(@q_id_array[cell]).answers.detect {|a| a.answer == row[cell + @cell_spaces]} if ans reply.reply = ans.id reply.save end So maybe thats why, but detect works just fine :) -- Posted via http://www.ruby-forum.com/.