Skip to content

@stefanpenner /gist:283459
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
These assume they abide by the global presets, if presets need to be overridden they can be by adding the attribute with the appropriate value to the element.
data-asynchronous='false'
data-eval-scripts='false'
(this asssumes they values are defaulted to true)
API:
link_to_remote "Delete this post", :update => "posts", :url => { :action => "destroy", :id => post.id }
UJS:
<a href='/blog/3' data-remote data-method='destroy' rel='nofollow'>Delete this post</a>
API
form_remote_tag :html => { :action => url_for(:controller => "some", :action => "place") }
UJS:
<form data-remote action='/some/place' method='post' >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.