Paperclip generating wrong URLs #1012

Closed
toptierlabs opened this Issue Sep 8, 2012 · 3 comments

3 participants

@toptierlabs

Paperclip is generating wrong URLs in Heroku.

I have an Audio model which has a mp3 field.

I am calling audio.mp3.url from a controller, and it returns

http://s3.amazonaws.com/MyApp/audios/mp3s//original/96a9ae89302fdf8462ee05eb829f2e17578b144e20120908-2-11f61zr.mp3?1347135050

instead of

http://s3.amazonaws.com/MyApp/audios/mp3s/000/000/004/original/96a9ae89302fdf8462ee05eb829f2e17578b144e20120908-2-11f61zr.mp3?1347135050 (which works)

and it doesn't work. Why is it missing the '000/000/004' part of the route? The same model is generating the right URL when used somewhere else (specifically in a ActiveAdmin page).

I am using paperclip 3.2.0 and Rails 3.1.8. Any help?

@sikachu
thoughtbot, inc. member
@toptierlabs

It worked. Thanks!

@djcp

@sikachu FTW.

@djcp djcp closed this Nov 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment