Rails Render Partial in Helper

前端 未结 3 778
一个人的身影
一个人的身影 2021-02-10 22:11

I have been trying to render one of my partials in a helper function located within my controller.

The first issue I encountered was that the helper was returning the e

3条回答
  •  渐次进展
    2021-02-10 22:37

    You can use the html_safe method like this

    <%= html_safe display_replies(reply) %>
    

提交回复
热议问题