What is the purpose of partial attribute in rails render method?

前端 未结 0 1092
野性不改
野性不改 2021-01-24 15:59

We can render a partial using

<%= render "shared/header", attr1: 1, attr2: 2 %>

or using the following method

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题