public
Last active

  • Download Gist
gistfile1.htm
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
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' >
 

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.