Forum: Ruby on Rails partial problem from down under.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Simon (Guest)
on 2006-05-07 13:48
I'm trying to display a partial with the :collection parameter.
The value i pass to the collection parameter is an array of hashes,
something like.. [{'a'=>'1'},{'a'=>'2'}].
I would have expected that if I display something like partialname['a']
within my partial, I would see the values of '1','2' etc. But it comes
out a nil object.

If i use an ordinary array, or hash seems fine. Also if i use an active
record object seems fine also.

I suspect my problem is my understanding of ruby language itself.

Please help. Si.
This topic is locked and can not be replied to.