So, if I loop through and create a collection of li/a tags, I get as expected.. an array of these tags:
(1..5).to_a.map do
content_tag(:li) do
link_to(\"bo
What happens if you use safe_join?
content_tag(:ol) do
safe_join (1..5).to_a.map {
content_tag(:li) { link_to("boo", "www.boohoo.com") }
}, ''
end
Or just use raw?
content_tag(ol) do
1.upto(5) {
raw content_tag(:li) { link_to 'boo', 'www.boohoo.com' }
# or maybe
# raw content_tag(:li) { raw link_to('boo', 'www.boohoo.com') }
}
end