Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4d2eb49d96ca4ab810ecbcbb10f9052c00dd6eb4 1 parent 15a6305
Francesco Rodríguez frodsan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  guides/source/ajax_on_rails.textile
2  guides/source/ajax_on_rails.textile
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.