aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-06-16 17:59:05 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-06-16 17:59:20 -0500
commit4d2eb49d96ca4ab810ecbcbb10f9052c00dd6eb4 (patch)
tree1a06b061342296f748ac4a2ab7a40afedba9b738
parent15a63052dc30e681a84f491264a8dbe8ec699158 (diff)
downloadrails-4d2eb49d96ca4ab810ecbcbb10f9052c00dd6eb4.tar.gz
rails-4d2eb49d96ca4ab810ecbcbb10f9052c00dd6eb4.tar.bz2
rails-4d2eb49d96ca4ab810ecbcbb10f9052c00dd6eb4.zip
fix example with data: { disable-with: '' } [ci skip]
-rw-r--r--guides/source/ajax_on_rails.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/ajax_on_rails.textile b/guides/source/ajax_on_rails.textile
index 1c502111d9..0787e65068 100644
--- a/guides/source/ajax_on_rails.textile
+++ b/guides/source/ajax_on_rails.textile
@@ -107,7 +107,7 @@ will produce
<ruby>
button_to 'Destroy', 'http://www.example.com', confirm: 'Are you sure?',
- method: 'delete', remote: true, 'data-disable-with' => 'loading...')
+ method: 'delete', remote: true, data: { disable-with: 'loading...' }
</ruby>
will produce