Possible bug in render collection behaviour

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

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


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs