Permalink
Browse files

fix example with data: { disable-with: '' } [ci skip]

  • Loading branch information...
Francesco Rodriguez
Francesco Rodriguez committed Jun 16, 2012
1 parent 15a6305 commit 4d2eb49d96ca4ab810ecbcbb10f9052c00dd6eb4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 4d2eb49

Please sign in to comment.