Skip to content

Instantly share code, notes, and snippets.

@beanieboi
Created February 15, 2012 14:57
Show Gist options
  • Save beanieboi/1836381 to your computer and use it in GitHub Desktop.
Save beanieboi/1836381 to your computer and use it in GitHub Desktop.
Rails Metal DataStreaming broken?!
class Api::V1::OpenRateController < ActionController::Metal
include ActionController::DataStreaming
def show
tracking_gif = "GIF89a\x03\x00\x02\x00\x80\x00\x00\xC0\xC0\xC0\x00\x00\x00!\xF9\x04\x01\x00\x00\x00\x00,\x00\x00\x00\x00\x03\x00\x02\x00\x00\x02\x02\x84_\x00;".freeze
send_data tracking_gif
end
end
@wxianfeng
Copy link

i also meet this error , rails version is 3.2.2

do u have solved?

@beanieboi
Copy link
Author

haven't solved this, i'm using a ActionController::Base now

@benedikt
Copy link

Including include ActionController::RackDelegation solves this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment