amazon s3 - 'missing required :bucket option' in S3 paperclip rails development -


i followed instructions link: https://devcenter.heroku.com/articles/paperclip-s3

and getting following error message:

actionview::template::error (missing required :bucket option): 

and points line:

<%= image_tag company.profile_image.url %> 

these current files like

env.rb:

env['s3_bucket_name'] = 'goodlifecompanyimages' env['aws_access_key_id'] = 'xxx' env['aws_secret_access_key'] = 'xxx' 

development.rb:

 paperclip.options[:command_path] = "/usr/local/bin/"    config.paperclip_defaults = {   :storage => :s3,   :s3_credentials => {     :bucket => env['s3_bucket_name'],     :access_key_id => env['aws_access_key_id'],     :secret_access_key => env['aws_secret_access_key']     }   } 

thank you!


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -