I need to create image files on-the-fly in my controller with RMagick and send them to browser. Looks like it's very simple, but I can't find a way. I've tried just simply render
them, but it fails due to data is binary. I've also tried to use send_data
, but Padrino says it doesn't know about such method.
So, what have I missed? How can I solve this problem?