From: Mark Mr Date: 2008-02-15T07:18:40+09:00 Subject: Re: How to pass a hash into a function 7stud -- wrote: > h = {1=>[88, 99, 100]} > > def show(a_hash) > puts a_hash[1] > end > > show(h) > > --output:-- > 88 > 99 > 100 yeah, im not doing standard ruby like that, I'm doing it through html so I think it's getting screwed up in that process. I'm just going to calculate the hash in the other controller instead and try that. -- Posted via http://www.ruby-forum.com/.