Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CarrierWave.configure do |config|
- config.fog_provider = 'fog/aws'
- config.fog_credentials = {
- provider: 'AWS',
- aws_access_key_id: '...',
- aws_secret_access_key: '...',
- }
- config.fog_directory = Rails.env
- config.fog_public = false
- end
- class Item < ActiveRecord::Base
- mount_uploader :image, ImageUploader
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement