阅读背景:

如何用红宝石中的sinatra提供生成的图像

来源:互联网 

I wrote a simple Sinatra app that generate an image using rmagick from some user inputs. The image is saved in the ./public directory with a unique file name. The unique file name is used in the HTML generated by Sinatra so that each user gets the correct image. Once a day a script deletes files older than one hour. This is clearly a terrible hack but I have no web experience!I wrote a simple Sinatra app that generate an i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: