From: eggie5 Date: 2007-08-25T11:45:03+09:00 Subject: Re: How can I make this if/else more succinct? Actually how can this be more succinct? Video.find(:all).each do |video| if video._3gp ==1 ext=".3gp" elsif video._3g2==1 ext=".3g2" elsif video.mp4==1 ext=".mp4" end expected.push "#{self.id}_#{video.id}#{ext}" end