Skip to content

Instantly share code, notes, and snippets.

@ch1ago
Created January 7, 2011 17:58
Show Gist options
  • Save ch1ago/769836 to your computer and use it in GitHub Desktop.
Save ch1ago/769836 to your computer and use it in GitHub Desktop.
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