in haml template use %thumbnail{src: "/images/image.png"} or with defined thumbnail size %thumbnail{src: "/images/image.png", size: "20x30"}