{"issue":{"created_at":"2011-11-30T17:21:41Z","state":"closed","updated_at":"2011-12-01T08:10:59Z","comments":1,"user":{"gravatar_id":"e0d08640c4e8eab7575236a6930cae7d","id":58671,"url":"https://api.github.com/users/corck","avatar_url":"https://secure.gravatar.com/avatar/e0d08640c4e8eab7575236a6930cae7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"corck"},"body":"I have a strange issue. I just upgraded from 2.3 to rails 3.0 and using the latest Paperclip gem\r\n\r\nThe problem is, on Rails startup or can reproduce it in the console as well, it seems the storage S3 option is ignored.\r\nI get the URL\r\n```ruby\r\nruby-1.9.3-p0 :006 > p.asset.url\r\n\"/system/assets/116/original/DSC07568.jpg?1270933446\"\r\n```\r\n after I do a reload! in the console the url is the proper one\r\n```ruby\r\nruby-1.9.3-p0 :006 > reload!\r\nruby-1.9.3-p0 :006 > p = Photo.last\r\nruby-1.9.3-p0 :006 > p.asset.url\r\n\"http://development-assets0.domain.com/development/asset/116/original_DSC07568.jpg?1270933446\" \r\n```\r\n\r\nmy model declaration\r\n```ruby\r\nhas_attached_file :asset,\r\n    :styles => {\r\n    :original => \"1024x1024>\",\r\n    :medium => \"267x267>\",\r\n    :thumb=> \"100x100#\",\r\n    :small  => \"150x150>\"\r\n  },\r\n    :storage => :s3,\r\n    :s3_credentials => \"#{Rails.root}/config/s3.yml\",\r\n    :bucket => BUCKET_NAME,\r\n    :path => \":rails_env/asset/:id/:style_:basename.:extension\",\r\n    #:url => \":rails_env/asset/:id/:style_:basename.:extension\",\r\n    :url => ':s3_alias_url',\r\n    :default_url => \"/images/processing.png\",\r\n    :processors => :thumbnail,\r\n    :s3_host_alias => \"#{Rails.env}-assets0.domain.com\"\r\n```","assignee":null,"id":2404577,"number":658,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"s3 url creation not working","html_url":"https://github.com/thoughtbot/paperclip/issues/658","closed_at":"2011-12-01T08:10:59Z","url":"https://api.github.com/repos/thoughtbot/paperclip/issues/658","milestone":null},"action":"created","comment":{"created_at":"2011-12-01T08:10:59Z","updated_at":"2011-12-01T08:10:59Z","user":{"gravatar_id":"e0d08640c4e8eab7575236a6930cae7d","id":58671,"url":"https://api.github.com/users/corck","avatar_url":"https://secure.gravatar.com/avatar/e0d08640c4e8eab7575236a6930cae7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"corck"},"body":"fixed the problem doing\r\n\r\n```\r\nrails plugin install https://github.com/thoughtbot/paperclip.git\r\n```\r\nand adding it to the Gemfile\r\n```\r\ngem 'paperclip', :gem => https://github.com/thoughtbot/paperclip.git\r\n``` ","id":2972196,"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/comments/2972196"}}