From 683fc4db00f496e5225928afb4d4e932e0fcdc48 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20Galdino=20+=20Rafael=20Mendon=C3=A7a=20Fran=C3=A7?=
 =?UTF-8?q?a?= <rafael.franca+carlos.galdino@plataformatec.com.br>
Date: Mon, 14 May 2012 16:40:43 -0300
Subject: Remove `:disable_with` in favor of `'data-disable-with'` option from
 `submit_tag`, `button_tag` and `button_to` helpers.

---
 guides/source/ajax_on_rails.textile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(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 cda9c64460..bfd007490a 100644
--- a/guides/source/ajax_on_rails.textile
+++ b/guides/source/ajax_on_rails.textile
@@ -78,7 +78,7 @@ will produce
 
 <ruby>
 button_to('Destroy', 'http://www.example.com', :confirm => 'Are you sure?',
-          :method => "delete", :remote => true, :disable_with => 'loading...')
+          :method => "delete", :remote => true, 'data-disable-with' => 'loading...')
 </ruby>
 
 will produce
@@ -87,7 +87,7 @@ will produce
 <form class='button_to' method='post' action='http://www.example.com' data-remote='true'>
   <div>
     <input name='_method' value='delete' type='hidden' />
-    <input value='Destroy' type='submit' disable_with='loading...' data-confirm='Are you sure?' />
+    <input value='Destroy' type='submit' data-disable-with='loading...' data-confirm='Are you sure?' />
   </div>
 </form>
 </html>
-- 
cgit v1.2.3

