On 6 sep, 21:04, Rico <richardjhar... / gmail.com> wrote:
> On Sep 6, 7:17 殮 
>
> >    
> >  ۺݮ  뼼 
> > value == user_id}
>
> > how to initialize the works array in the bloc ?
>
> > thanks for your lights
>
> >erwin
>
> works = session[:cart_works].keys.select { |key| session[:cart_works]
> [:key] == user_id }

thanks a lot, all answers show exactly what I was looking for, ...