Rails: Responding with a blank gif, without reading from disk # in your controller ... BLANK_GIF = Base64.decode64("R0lGODlhAQABAPAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==") render text: BLANK_GIF, type: 'image/gif' Share this:TwitterLinkedInPocketMoreEmailFlattrPrintRedditTumblrLike this:Like Loading... Related