Created
February 27, 2011 05:10
-
-
Save cmeiklejohn/845915 to your computer and use it in GitHub Desktop.
Is this really the right way to do this?
This file contains 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
# 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