Skip to content

Instantly share code, notes, and snippets.

@cmeiklejohn
Created February 27, 2011 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmeiklejohn/845915 to your computer and use it in GitHub Desktop.
Save cmeiklejohn/845915 to your computer and use it in GitHub Desktop.
Is this really the right way to do this?
# Rails 2 way.
SomeController.new.process( request, response )
# Rails 3 way.
status, headers, body = SomeController.action(:show).call(request.env)
response = ActionDispatch::Response.new(status, headers, body)
self.response_body = response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment