From: Joel Pearson Date: 2013-08-06T09:46:05+02:00 Subject: Re: undefined method []' for nil:NilClass (NoMethodError) Line 50 in that script is this: cache = Hash[*res['solr-mbeans']]['CACHE'] I'd suggest breaking that section down into a step-by-step and using "puts" on each part of the process to debug it. You'll probably find that there's an element missing from the Hash, causing it to return nil. -- Posted via http://www.ruby-forum.com/. _______________________________________________ ruby-talk mailing list ruby-talk@ruby-lang.org http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/ruby-talk