Forum: Ruby on Rails Possible bug in render collection behaviour

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.
Christoph Lupprich (Guest)
on 2006-02-04 13:13
Hi everybody,

I think I found a possible bug in the render collection function (or at
least an undocumented restriction). When I pass a collection whose name
contains and underscore (for example ingredient_options), the local
variable inside the partial isn't called ingredient_option but only
ingredient.

Could you please verify this? I'm a bit of a noob but this bothered me
for a few days now.

Thanks,
Christoph
Christoph Lupprich (Guest)
on 2006-02-04 13:21
Sorry, forget it, I overlooked the fact that the local variable isn't
named after the collection but after the partial.
This topic is locked and can not be replied to.