From 4d2eb49d96ca4ab810ecbcbb10f9052c00dd6eb4 Mon Sep 17 00:00:00 2001
From: Francesco Rodriguez <lrodriguezsanc@gmail.com>
Date: Sat, 16 Jun 2012 17:59:05 -0500
Subject: fix example with data: { disable-with: '' } [ci skip]

---
 guides/source/ajax_on_rails.textile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'guides/source/ajax_on_rails.textile')

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
-- 
cgit v1.2.3

