Greetings. I am encountering an issue with attachment fu and s3.
Details: Production server - Ubuntu - imagemagick, rmagick aws-s3 gems are installed .
Error starting app:
vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb:173:in `included': undefined method `symbolize_keys' for nil:NilClass开发者_Python百科 (NoMethodError)
See: http://github.com/technoweenie/attachment_fu/blob/master/lib/technoweenie/attachment_fu/backends/s3_backend.rb
Has anyone encountered this? It seems that even with the config/amazon_s3.yml, the YAML file is not read.
Taking a wild guess here as the file you've linked to isn't the same version as the one you're using. The only mention of symbolize_keys in self.included is
@@s3_config = @@s3_config = YAML.load(ERB.new(File.read(@@s3_config_path)).result)[RAILS_ENV].symbolize_keys
Looking at that, I guess you don't have a configuration block for your current environment n config/amazon_s3.yml
Ie, if you are running in production mode, you need to have (at least)
production:
  bucket_name: appname
  photo_bucket_name: appname_photos
  access_key_id: <your key>
  secret_access_key: <your key>
in your configuration file.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论