Rails 4 WYSIWYG Bootsy not displaying formatting

前端 未结 4 616
温柔的废话
温柔的废话 2021-01-19 01:44

I\'ve just followed the install instructions at the the bootsy gem page and it all looks good until I save and look at the post\'s content.

This is what the output l

4条回答
  •  自闭症患者
    2021-01-19 02:35

    Sergio is correct but have the .html_safe on the output rather than the input.

    For example, on a post index:

    <%= post.body.html_safe %>
    

    Hope this helps.

提交回复
热议问题