% unless @check.respond_to?(:invert) %>
Checks are designed to identify bad data. A check fails if there are any results.
<% end %> <% if @check.errors.any? %>Emails are sent when a check starts failing, and when it starts passing again.
<% if @check.persisted? %> <%= link_to "Delete", check_path(@check), method: :delete, "data-confirm" => "Are you sure?", class: "btn btn-danger" %> <% end %> <%= f.submit "Save", class: "btn btn-success" %>
<% end %>