<%= form_remote_tag(:url => "/image/worksafe/" + image.id.to_s) %> <%= check_box_tag :worksafe, value = "1", checked = image.worksafe %> <%= submit_tag "Change status" %> <%= end_form_tag %>