Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bits

  • Loading branch information...
commit fbada1f6e16229a389113196d1e07696d8f42f4e 1 parent bd8ea8b
@manishkukreja authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  app/models/book.rb
  2. +1 −1  config/initializers/carrierwave.rb
View
2  app/models/book.rb
@@ -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
#######
View
2  config/initializers/carrierwave.rb
@@ -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 {}
Please sign in to comment.
Something went wrong with that request. Please try again.