Possible bug in render collection behaviour


#1

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


#2

Sorry, forget it, I overlooked the fact that the local variable isn’t
named after the collection but after the partial.