Spacer_template option syntax

Why this line is not considered spacer_templateas the parameter defining partial display between elements

render @picture.tags, spacer_template: "space_divider"

while doing this:

render partial: @picture.tags, spacer_template: "space_divider"
+3
source share
1 answer

renderyou need to specify partial:if you are adding more parameters than just a partial name. See Docs here (section 3.4.3)

+2
source

All Articles