C
c-note
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.findall,
: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
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.findall,
: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