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 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...' } will produce