Skip to content

Commit 5dca762

Browse files
authored
Fix pagination partial position in collection guide
1 parent 359a3ed commit 5dca762

File tree

1 file changed

+6
-6
lines changed
  • docs/reactive_components/700-collection

1 file changed

+6
-6
lines changed

docs/reactive_components/700-collection/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ class Shop::Pages::Products::Index < Matestack::Ui::Page
6565
@collection.paginated_data.each do |product|
6666
paragraph text: product.name
6767
end
68+
# pagination has to be placed within the collection_content!
69+
pagination
6870
end
69-
# pagination has to be placed within the wrapping async!
70-
pagination
7171
end
7272
end
7373

@@ -126,9 +126,9 @@ class Shop::Pages::Products::Index < Matestack::Ui::Page
126126
@collection.paginated_data.each do |product|
127127
paragraph text: product.name
128128
end
129+
# pagination has to be placed within the collection_content!
130+
pagination
129131
end
130-
# pagination has to be placed within the wrapping async!
131-
pagination
132132
end
133133

134134
end
@@ -199,9 +199,9 @@ class Shop::Pages::Products::Index < Matestack::Ui::Page
199199
@collection.paginated_data.each do |product|
200200
paragraph text: product.name
201201
end
202+
# pagination has to be placed within the collection_content!
203+
pagination
202204
end
203-
# pagination has to be placed within the wrapping async!
204-
pagination
205205
end
206206
end
207207

0 commit comments

Comments
 (0)