diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-02-17 17:41:02 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-02-17 17:41:02 -0300 |
commit | c18e7ab44706735d9b1274760bdc62ad5bef7757 (patch) | |
tree | b6c4111df10bfa77c2085bbab6a9db83ad1ca136 /guides | |
parent | a2075f4142355900bf9e3d19c70248f614363a39 (diff) | |
parent | d0b251e986ebbf4358ec9d339367387f32d74792 (diff) | |
download | rails-c18e7ab44706735d9b1274760bdc62ad5bef7757.tar.gz rails-c18e7ab44706735d9b1274760bdc62ad5bef7757.tar.bz2 rails-c18e7ab44706735d9b1274760bdc62ad5bef7757.zip |
Merge pull request #14087 from 10io/patch-1
Fix coffeescript sample [ci skip]
Diffstat (limited to 'guides')
-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 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>" ``` |