Created
January 7, 2011 17:58
-
-
Save ch1ago/769836 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using paperclip, s3, heroku | |
the file has been saved with another name, | |
I want to serve the file with the original file | |
is there a way to? | |
def display | |
x = Xlink.where(:micro=>params[:micro]).first || Xlink.new | |
redirect_to x.file.url(:original, false) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment