Rails 3.0.2 Array#join HTML Safe? -


i have rails gem uses snippet like:

components = [] components << label_for(attribute) components << ... components << text_field(attribute) return components.join 

the gem worked fine in rails 3.0.1, escapes (renders text in browser) html after updating rails 3.0.2. doing wrong? thanks.

as @sj26 points out, either use rails built-in helper:

<%= safe_join(components) %> 

or use rails_join gem make array#join html-safe aware, in case original code work is.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -