ERB объект JSON

@object.to_json.html_safe
Old-fashioned Osprey