Ruby on Rails seems to be auto-escaping html created by link_to

后端 未结 4 698
遥遥无期
遥遥无期 2020-12-20 20:42

Here is my code, I\'m trying to display a list of links to a bboy\'s crews in sentence form with .to_sentence


    <% if         


        
4条回答
  •  执念已碎
    2020-12-20 21:24

    I recommend you move this block of code to an helper and then use the .html_safe method to obtain the expected results.

提交回复
热议问题