diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-11 23:53:31 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-11 23:53:31 +0900 |
commit | fb60def5a4d9eef95571b730701c55426846e0ea (patch) | |
tree | 83cab28a74ae06ef56d06cac009441dd6232df1f | |
parent | 93c21828367bf6255e79020fad882b597bace782 (diff) | |
download | rails-fb60def5a4d9eef95571b730701c55426846e0ea.tar.gz rails-fb60def5a4d9eef95571b730701c55426846e0ea.tar.bz2 rails-fb60def5a4d9eef95571b730701c55426846e0ea.zip |
Revert "Merge pull request #35216 from CHTJonas/patch-1"
This reverts commit b46601b56d94a02d944ed9bd9494aeea9cba98c8, reversing
changes made to 4e6737f18ab8f0d0e9fbe6f73a92e5d29f1c68f1.
-rw-r--r-- | guides/source/working_with_javascript_in_rails.md | 2 |
1 files changed, 1 insertions, 1 deletions
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 |