views:

298

answers:

2

Just upgraded Rails to 2.3.5 to get the lovely looking rails_xss plugin but I've noticed one big issue with it. Any content_for blocks are escaped when yielded.

I've tried hacking it around by doing the either of following but they do not work:

<% @content_for_foo.html_safe! -%>
<%= yield raw :foo %>
+2  A: 

Try <%= raw yield :foo %>

nertzy
You sir, are my hero! I couldn't figure out why none of the content_for stuff was working for me!
Jenny
A: 

Sorry that doesn't work for me, the raw thing

any other suggestions?

i'm using 2.3.7

Patrick