aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2019-02-11 09:18:00 -0500
committerGitHub <noreply@github.com>2019-02-11 09:18:00 -0500
commitb46601b56d94a02d944ed9bd9494aeea9cba98c8 (patch)
treeb6f1bd9c44d01e05e4a5ee6bdcf7034ef70c0b5f /guides
parent4e6737f18ab8f0d0e9fbe6f73a92e5d29f1c68f1 (diff)
parent768a081751482a3e09d7051e205b39fcb97492d2 (diff)
downloadrails-b46601b56d94a02d944ed9bd9494aeea9cba98c8.tar.gz
rails-b46601b56d94a02d944ed9bd9494aeea9cba98c8.tar.bz2
rails-b46601b56d94a02d944ed9bd9494aeea9cba98c8.zip
Merge pull request #35216 from CHTJonas/patch-1
Correct JavaScript guide example
Diffstat (limited to 'guides')
-rw-r--r--guides/source/working_with_javascript_in_rails.md2
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 c36b3faa6c..3f00c71596 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
-$("<%= escape_javascript(render @user) %>").appendTo("#users");
+$("#users").appendTo("<%= raw escape_javascript(render @user) %>");
```
Turbolinks