has_attached_file :image, :storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", :path => "/:style/:filename"
我不确定:path => "/:style/:filename"
是什么意思。
我还想为这个附加的图像包括样式,这就是:path
的作用吗? 我想要的样式是这样的::styles => { :medium => "275x275>", :thumb => "175x155>" }
基本上这里正在设置heroku
,我必须使用S3,这似乎很简单,只是不习惯这种附件约定。
另外,我刚刚注册了一个S3帐户...但是heroku
声称它是免费的或者类似于这样的话。 这是怎么回事?