Posts List

Ruby on Rails Exceptions

Services Statuses Events An event references both a service and a status. I needed to be able to ensure a status being deleted wasn’t referenced by any events. The callback and the database query were easy, but I was having issues when it came to showing an error as to why the status wasn’t deleted. After a bit of Googling I found that exceptions seems to be the best way to do this.