【发布时间】:2012-05-04 06:31:18
【问题描述】:
在模型中我有类似的东西
has_attached_file :logo, something_here
代码/上传徽标工作正常,但在上传徽标之前我需要尺寸。 所以当我使用几何时,会抛出错误
undefined local variable or method 'logo' for #<Class:0xbfabbc0>
知道如何解决这个问题吗?或者有没有其他方法可以在存储数据之前获取维度。
【问题讨论】:
标签: ruby-on-rails paperclip undefined ruby-on-rails-3.2