mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
fix spacer template example
This commit is contained in:
committed by
Vijay Dev
parent
ea54d2c93e
commit
ed3a15da90
@@ -1188,7 +1188,7 @@ You can also specify a second partial to be rendered between instances of the ma
|
||||
h5. Spacer Templates
|
||||
|
||||
<erb>
|
||||
<%= render @products, :spacer_template => "product_ruler" %>
|
||||
<%= render :partial => @products, :spacer_template => "product_ruler" %>
|
||||
</erb>
|
||||
|
||||
Rails will render the +_product_ruler+ partial (with no data passed in to it) between each pair of +_product+ partials.
|
||||
|
||||
Reference in New Issue
Block a user