Tuesday, September 20, 2011

A Rails 3 gotcha with html_safe

This was causing me to scratch my head a bit today. I'm glad I know what's going on now and why you need to use safe_concat. It still seems a little unintuitive though. For more into see the explanation here (under the "the tricky part") and the api docs on ActiveSupport::SafeBuffer

1 comment:

Miguel said...

Thanks a lot! I also was scratching my head :)