From: Ben Lovell Date: 2009-04-15T19:22:31+09:00 Subject: Re: how to sort my hash --00504502e11ec2a8ad0467955227 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > > > i try my_hash.sort_by { |k,v| v.business_continuity ? 1 : 0 } > > this give me following error > > merb : worker (port 4000) ~ undefined method `business_continuity' for > nil:NilClass - (NoMethodError) > -- > Posted via http://www.ruby-forum.com/. > > You need to replace "my_hash" for the name of your variable of course. --00504502e11ec2a8ad0467955227--