aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-02-17 13:42:42 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2014-02-17 13:42:42 -0800
commit23ce2f61b5a7699af8213bf1b5d581da194ab8f4 (patch)
treeb2adcb398f6b5171e15fd681fd23d5c94ca1cdcf /guides
parentfe42effb11a97cf19777d7b0dba7e1e2dfd3316c (diff)
parentc18e7ab44706735d9b1274760bdc62ad5bef7757 (diff)
downloadrails-23ce2f61b5a7699af8213bf1b5d581da194ab8f4.tar.gz
rails-23ce2f61b5a7699af8213bf1b5d581da194ab8f4.tar.bz2
rails-23ce2f61b5a7699af8213bf1b5d581da194ab8f4.zip
Merge branch 'master' into adequaterecord
* master: Revert "Merge pull request #13344 from ccutrer/fix-from-default-select" No need to use symbols Don't skip tests if they are not broken. Just don't define they Fix typo [ci skip] Resolve encoding issues with arrays of hstore (bug 11135). Fix coffeescript sample [ci skip]
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 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>"
```