18 Mar 2011, 00:55
Img_0489_pragsmall

Alexander (14 posts)

Hi Ryan:

I truly hope you’ll be able to help me understand this problem.

Why do I get the following code print out on the browser “ <img alt="Small_full_star" height="15" src="/images/small_full_star.png?1299279004" width="15" /><img alt="Small_full_star" height="15" src="/images/small_full_star.png?1299279004" width="15" /> etc.”, as oppose to print out of images resulting from the calculated values.

As I said, the above HTML is just a print and therefore it never gets rendered. But after reviewing what’s under the page per se, this is what comes up, “&lt;img alt=&quot;Small_full_star&quot; height=&quot;15&quot; src=&quot;/images/small_full_star.png?1299279004&quot; width=&quot;15&quot; /&gt;&lt;img alt=&quot;Small_full_star&quot; height=&quot;15&quot; src=&quot;/images/small_full_star.png?1299279004&quot;”…etc.

What is going on? Is it something to do with Rails 3? I am truly baffled.

Please just give me a hint. That’s all I am asking.

Thanks,

Alex

21 Mar 2011, 21:33
Img_0489_pragsmall

Alexander (14 posts)

Found the problem. For those that are having the same problem, make sure you append html_safe to join method! That’s it.

  You must be logged in to comment