Once you have the element as an object of type Record (not Relation), how can you get the SQL that would be executed if you call the delete method on that object?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.