Good notes posted by CodeFarmer
RSS feed![Default_avatar_30](https://www.gravatar.com/avatar/43006710097182a1a363def690940ab0?default=http://apidock.com/images/default_avatar_30.png&size=30)
5 thanks
Change to the way the block is handled
At least in 3.0.5, some of the previous examples no longer work: ActionView seems to quietly ignore Array content.
If you were using code of the form
content_tag(:li, nil, :class => 'someClass') { arr.collect { |x| content_tag(:ul, x) } }
it now needs to look like
content_tag(:li, nil, :class => 'someClass') { arr.reduce('') { |c, x| c << content_tag(:ul, x) }.html_safe }