Michal Burak wrote:
> i wan add all elements from list1 to list2

That is not what your code does.

This should work:

list2.concat(list1 || [])

Tor Erik
http://tel.jklm.no/
-- 
Posted via http://www.ruby-forum.com/.