% content_for :title, "Edit #{@aircraft.tail_number}" %> <%= render "shared/aircraft_header", aircraft: @aircraft %> <%= render "form", aircraft: @aircraft %>
Deleting an aircraft removes all of its records, documents and history.
<%= delete_button "Delete #{@aircraft.tail_number}", aircraft_path(@aircraft), confirm: "Delete #{@aircraft.tail_number} and ALL its records? This cannot be undone.", class: "btn-danger" %>