Forum: Ruby on Rails partial problem from down under.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fe1b3603e4ed046ca0486626e1dbff91?d=identicon&s=25 Simon (Guest)
on 2006-05-07 11: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.