We can render a partial using
<%= render "shared/header", attr1: 1, attr2: 2 %>
or using the following method
<%= render partial: "shared/header", locals: {attr1: 1, attr2: 2} %>
Only the difference i have found is the way attributes are passed to the partial.