If I have a Widget model as follows:
create_table "widgets", id: :serial, force: :cascade do |t|
t.string "name"
t.integer "quantity"
end
... how do I prevent a destroy action if quantity
is something other than nil or zero? I assume this is something I should do in the model rather than the controller?