diff options
-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 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 |