回形针上传的图片的原始路径是什么。
has_attached_file :attachment,
:url => ":rails_root/public/photos/images/:id/:style/:basename.:extension",
:default => ":rails_root/public/images/no-image-available.png",
:styles => style_options,
:default_style => :gallery
和 style_options 是
style_options = { :thumbnail => {:geometry => '100x100'},
:profile_gallery => {:geometry => '184x247'}
}
在我的公共文件夹中创建 3 个文件夹,同时上传一张图片 1. 缩略图,2. profile_gallary 3. 原始。
在我的视图文件中,我调用
<%= photo.thumbnail_url %>
我的问题是我想使用上传图片的原始路径。我不想对任何特定的 url 使用缩略图。如何使用原始路径。
感谢提前