aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-02-17 17:41:02 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-02-17 17:41:02 -0300
commitc18e7ab44706735d9b1274760bdc62ad5bef7757 (patch)
treeb6c4111df10bfa77c2085bbab6a9db83ad1ca136
parenta2075f4142355900bf9e3d19c70248f614363a39 (diff)
parentd0b251e986ebbf4358ec9d339367387f32d74792 (diff)
downloadrails-c18e7ab44706735d9b1274760bdc62ad5bef7757.tar.gz
rails-c18e7ab44706735d9b1274760bdc62ad5bef7757.tar.bz2
rails-c18e7ab44706735d9b1274760bdc62ad5bef7757.zip
Merge pull request #14087 from 10io/patch-1
Fix coffeescript sample [ci skip]
-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 3c04204c29..a8695ec034 100644
--- a/guides/source/working_with_javascript_in_rails.md
+++ b/guides/source/working_with_javascript_in_rails.md
@@ -180,7 +180,7 @@ bind to the `ajax:success` event. On failure, use `ajax:error`. Check it out:
$(document).ready ->
$("#new_post").on("ajax:success", (e, data, status, xhr) ->
$("#new_post").append xhr.responseText
- ).bind "ajax:error", (e, xhr, status, error) ->
+ ).on "ajax:error", (e, xhr, status, error) ->
$("#new_post").append "<p>ERROR</p>"
```