Something
public ruby v1 · immutableCHECKBOX<%= check_box_tag :worksafe, value = "1", checked = image.worksafe, :onchange => remote_function( :update => "status", url_for => {:controller => "image", :action => "worksafe", :id => image.id.to_s} )%> FORM<%= form_remote_tag(:update => "status", :url => "/image/worksafe/" + image.id.to_s) %><%= check_box_tag :worksafe, value = "1", checked = image.worksafe%><%= submit_tag "Change status", :name => image.sha %><%= end_form_tag %>