Last active
January 13, 2018 00:51
-
-
Save andreacfm/5057815 to your computer and use it in GitHub Desktop.
Blog code
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
get :show, id: 1 # normal request | |
xhr :get, :show, id: 1 # exactly the same request, This time fake to be an xhr call. request.xhr? will be true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there. When i try to add hxr to test, i got an error:
Don't you know, how can i fix it?