From: c-note Date: 2008-05-20T21:25:01+09:00 Subject: comparison of Array with Array failed Hi all, i got this error when the field serial is empty. Showing app/views/find/index.rhtml where line #44 raised: comparison of Array with Array failed Extracted source (around line #44): 41: <% equipements = Equipement.find(:all, :conditions => [ 'id != "-1" ' ]) 42: @tab = [["--- Choose ---", -1]] 43: @liste = @equipements.collect {|elt| [ elt.serial, elt.id ]} 44: @thetab = @tab + @liste.sort 45: %> 46: <%= 47: select("profile2", "modele_om", @thetab) %> Can you help me ? Thanks