Paperclip Amazon S3 setup with Heroku

前端 未结 2 1738
走了就别回头了
走了就别回头了 2020-12-29 00:27

has_attached_file :image, :storage => :s3, :s3_credentials => \"#{RAILS_ROOT}/config/s3.yml\", :path => \"/:style/:filename\"

I\'m not sure wha

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 01:06

    Note that in Rails 3.1 and above, it should be Rails.root and not RAILS_ROOT

提交回复
热议问题