Since upgrading to rails 3, I have a new problem with displaying html from an array with various html tags.
So far, I could just write the name of the method. witch returns an array of different html tags. (even if they were made in lines ...)
Now the array will be displayed as an array:
["<br/></br/>", "<b><a href=\"/...">...</a></b>,"<br/></br/>"]
How can this be output as html tags? I tried to run to_html at the end of each array entry, but this gave mi an error:
undefined method `to_html' for "<br/></br/>":ActiveSupport::SafeBuffer
Any ideas how to fix this?
Thanks Marcus
Update:. Thanks to nimblegorilla's answer, the output is as follows:
[" ", "..."," "]
This is better because html is deleted, but elements are still displayed as an array ...
source share