rails each render partial code example
Example 1: rails render partial
<%= render 'partials/foo', comments: @comments %>
Example 2: render partial rails
<%= render "shared/menu" %>
<%= render 'partials/foo', comments: @comments %>
<%= render "shared/menu" %>