Setting up paperclip to use S3 on my local dev system was a snap.
However, I am not able to get it to work on Heroku.

The file uploads successfully:

[paperclip] Saving attachments.
[paperclip] saving photos/2/small.jpg
[paperclip] saving photos/2/original.jpg

However, views that try to link to the upload get a routing error:

ActionController::RoutingError (No route matches "/photos/small/
missing.png" with {:method=>:get}):

Notice how it is using 'missing' for the file name and is using '.png'
for the extension even though the file is a '.jpg'.

I have tried numerous combinations of the :url and :path options with
has_attached_file according the various blog posts and tutorials I
have found (including Heroku's docs), but none seem to work.

What are the correct steps to use paperclip with S3 on Heroku?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to