Permalink
Browse files

bits

  • Loading branch information...
1 parent bd8ea8b commit fbada1f6e16229a389113196d1e07696d8f42f4e @manishkukreja committed Apr 18, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/models/book.rb
  2. +1 −1 config/initializers/carrierwave.rb
View
@@ -91,7 +91,7 @@ def asset_url(path, ext = nil)
#"/public/uploads/book/#{path}/#{asset_name}" + (ext ? ".#{ext}": "")
#@book.audio_url
#"http://media.railscasts.com/assets/episodes/#{path}/#{asset_name}" + (ext ? ".#{ext}" : "")
- #"https://s3.amazonaws.com/bookshelf_audio/#{asset_name}" + (ext ? ".#{ext}" : "")
+ "https://s3.amazonaws.com/bookshelf_audio/#{asset_name}" + (ext ? ".#{ext}" : "")
end
#######
@@ -13,7 +13,7 @@
:aws_secret_access_key => '1s+Wiy6l5rhLCVxaMO59wQr/DdBWeKp7ZHrXq7sp', # required
:region => 'US-Standard' # optional, defaults to 'us-east-1'
}
- config.fog_directory = 'bookshelf_test_bucket' # required
+ config.fog_directory = 'bookshelf_audio' # required
#config.fog_host = 'https://www.gmail.com' # optional, defaults to nil
config.fog_public = true # optional, defaults to true
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {}

0 comments on commit fbada1f

Please sign in to comment.