【发布时间】:2015-11-15 07:48:00
【问题描述】:
url 的路由是什么:http://localhost:3000/images/10/thumb/200x300?其中 200 是图像的宽度,300 是图像的高度
【问题讨论】:
url 的路由是什么:http://localhost:3000/images/10/thumb/200x300?其中 200 是图像的宽度,300 是图像的高度
【问题讨论】:
您可能想改用url params。
这是你使用它的方式:
http://localhost:3000/images/10/thumb?width=200&height=300
你可以在你的代码中使用它:
参数[:宽度]
【讨论】: