Re: can''t convert hash into integer

dblack-TKXtfPMJ4Ozk1uMJSBkQmQ@public.gmane.org
2006-09-26T11:48:13Z

Hi --

On Tue, 26 Sep 2006, Ianne Leson wrote:

>
> Hi,
>
> I have the following code in model:
>
> input[:hello].each do |abc|
> blablablab
> end
>
> and it terminated with error "can''t convert hash into
integer"
>
> anyone has got a clue?  Thanks.

My first suspicion is that, somewhere, you''re trying to use a hash
where you need an integer :-)  But "blablablab", and no information
about what line the error pointed to, makes it hard to say much more.


David

--
                   David A. Black |
dblack-TKXtfPMJ4Ozk1uMJSBkQmQ@public.gmane.org
Author of "Ruby for Rails"   [1] | Ruby/Rails training &
consultancy [3]
DABlog (DAB''s Weblog)        [2] | Co-director, Ruby Central, Inc.
[4]
[1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com
[2] http://dablog.rubypal.com    | [4] http://www.rubycentral.org