Rails Render Partial in Helper

前端 未结 3 876
一个人的身影
一个人的身影 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:23

    Actually, html_safe should be used like this:-

    <%= display_replies(reply).html_safe %>
    

提交回复
热议问题