From: Michael Fellinger Date: 2008-09-08T08:12:07+09:00 Subject: Re: any way to write it in one line ? On Sun, Sep 7, 2008 at 3:14 AM, Erwin wrote: > works = Array.new > session[:cart_works].each_pair {|key, value| works << key if > value == user_id} works = session[:cart_works].reject{|k,v| v == user_id }.keys > how to initialize the works array in the bloc ? > > thanks for your lights > > erwin