thoughtbot/paperclip — Issue #682: url style being ignored?
Author: jjb
Created: 2011-12-15 03:28:51+00:00
State: open

Here's a problem I'm having in master.

1. I'm trying to control the url style used when generating an s3 url to a file, by `Paperclip::Attachment#expiring_url` (provided by module `Paperclip::Storage::S3`). This can be controlled from `has_attached_file` and also directly when invoking `expiring_url`. It seems like in both places, it is being ignored, and I can't change to domain-name style. It's always the default path style.

2. oddly, in my dev environment it's always path style (as described above), but in my test environment it's always domain style, and I likewise cannot change it to path style.

I started to dig into the code and was led to `Paperclip::Interpolations.interpolate`, which has a lot of meta programming and addresses a domain I'm not really familiar with. So I figured I'd bring up the problem here to see if any of it sounded familiar or if you had ideas.

Cheers,
John