【发布时间】:2012-08-18 22:21:07
【问题描述】:
我需要知道当前载波实例的宽度和高度
例如:
image_tag image.photo_url,:width => image.photo.width, :height => image.photo.height
但问题是 image.photo.width 和 image.photo.height 不起作用。
有什么想法吗?
【问题讨论】:
-
同意;如果您不接受对您的问题的回答,您将无法在这里获得帮助。
-
是的,我同意。如何接受答案?
-
你的问题的答案有一个空勾,点击你想接受的答案的勾
标签: ruby-on-rails ruby-on-rails-3 gem bundle carrierwave