Printing & page size

I need print badges on landscape format. I add route /badges. Then on this route printing page size must be landscape.

In controllers/application.coffee i observe currentPath and add html head style {@page:size: controller.size}. In badges controller set size prop to landscape

Also i set to row class style page-break-inside: avoid And add class print-color with style print-color-adjust: exact for print color

gist

conclusion: Each route|controller can be have own page size, and this give simple printing