On 8/24/07, eggie5 <eggie5 / gmail.com> wrote: > Actually how can this be more succinct? > > Video.find(:all).each do |video| ext = %w(_3gp _3g2 mp4).find { |m| video.send(m) == 1 }.to_s.sub(/\A_?(.+)\z/, '.\\1') > expected.push "#{self.id}_#{video.id}#{ext}" > end > > >