我正在使用simple_form_for
帮助器生成表单。
我有这样的输入。
= f.input :color, label: "color", collection: input_collection, include_blank: false
这是来自input_collection
的回复:
```
[["<span>test</span>black", "black"],
["<span>test</span>silver", "silver"],
["<span>test</span>gray", "gray"],
["<span>test</span>maroon", "maroon"],
["<span>test</span>red", "red"],
["<span>test</span>purple", "purple"],
["<span>test</span>fuchsia", "fuchsia"],
["<span>test</span>green", "green"],
["<span>test</span>lime", "lime"],
["<span>test</span>olive", "olive"],
["<span>test</span>yellow", "yellow"],
["<span>test</span>navy", "navy"],
["<span>test</span>blue", "blue"],
["<span>test</span>teal", "teal"],
["<span>test</span>aqua", "aqua"]]
```
不幸的是它呈现给了:
问题是:如何将这些渲染为html标签(所以我可以给它们样式!) 感谢。