aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorRyunosuke SATO <tricknotes.rs@gmail.com>2013-02-10 03:53:27 +0900
committerRyunosuke SATO <tricknotes.rs@gmail.com>2013-02-10 03:53:27 +0900
commit07f533a2dacc9a88fdf0db14c83c184dfe58e5ab (patch)
tree28c75c05e36e4ecd3f9bf2aebcd0114cf13bc734 /guides/source
parent53c22e097ad416e32a216fdf0fd70d9a1a47cecf (diff)
downloadrails-07f533a2dacc9a88fdf0db14c83c184dfe58e5ab.tar.gz
rails-07f533a2dacc9a88fdf0db14c83c184dfe58e5ab.tar.bz2
rails-07f533a2dacc9a88fdf0db14c83c184dfe58e5ab.zip
Fix CoffeeScript example
`a[data-color]` is not used in example html.
Diffstat (limited to 'guides/source')
-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 03ef770352..7c4192ee26 100644
--- a/guides/source/working_with_javascript_in_rails.md
+++ b/guides/source/working_with_javascript_in_rails.md
@@ -111,7 +111,7 @@ paintIt = (element, backgroundColor, textColor) ->
element.style.color = textColor
$ ->
- $("a[data-color]").click ->
+ $("a[data-background-color]").click ->
backgroundColor = $(this).data("background-color")
textColor = $(this).data("text-color")
paintIt(this, backgroundColor, textColor)