What is the best way to return multiple tags from a Rails Helper?

后端 未结 5 1465
梦如初夏
梦如初夏 2021-02-02 09:19

I want to create a hidden field and create a link in one helper and then output both to my erb.

<%= my_cool_helper \"something\", form %>

5条回答
  •  长情又很酷
    2021-02-02 09:52

    If you want to buffer other output which apart from string then you can use concat instead of +. see this - http://thepugautomatic.com/2013/06/helpers/

提交回复
热议问题