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/.