From fb60def5a4d9eef95571b730701c55426846e0ea Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 11 Feb 2019 23:53:31 +0900 Subject: Revert "Merge pull request #35216 from CHTJonas/patch-1" This reverts commit b46601b56d94a02d944ed9bd9494aeea9cba98c8, reversing changes made to 4e6737f18ab8f0d0e9fbe6f73a92e5d29f1c68f1. --- guides/source/working_with_javascript_in_rails.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') diff --git a/guides/source/working_with_javascript_in_rails.md b/guides/source/working_with_javascript_in_rails.md index 3f00c71596..c36b3faa6c 100644 --- a/guides/source/working_with_javascript_in_rails.md +++ b/guides/source/working_with_javascript_in_rails.md @@ -475,7 +475,7 @@ respond to your Ajax request. You then have a corresponding code that will be sent and executed on the client side. ```erb -$("#users").appendTo("<%= raw escape_javascript(render @user) %>"); +$("<%= escape_javascript(render @user) %>").appendTo("#users"); ``` Turbolinks -- cgit v1.2.3