Skip to content

Instantly share code, notes, and snippets.

@cbetta
Last active August 29, 2015 14:26
Show Gist options
  • Save cbetta/1e20c3901354a809ae10 to your computer and use it in GitHub Desktop.
Save cbetta/1e20c3901354a809ae10 to your computer and use it in GitHub Desktop.
Example
...
def pay
Volt::Braintree.get_nonce.then do |nonce|
"Send to server to process"
end.fail do
"Handle failure"
end
end
....
<:braintree />
<a e-click='pay'>Pay</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment