Topic: Create labels in Prawn


I want to fetch rows with data from the database and display them as labels in a grid with Prawn. How many labels of each row should be printed is also specified in the database. How could I achieve this?
I have tried it, but I can't figure out how to loop trough the records and display them as a grid.

Thanks in advance,