Created
August 1, 2014 00:33
-
-
Save charleyhine/2197b76ed8f276f2dadc to your computer and use it in GitHub Desktop.
Chain webhooks URL -> Ruby response
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
class HomeController < ApplicationController | |
def callback | |
puts request.body.read | |
respond_to do |format| | |
format.all { render text: request.body.read } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment