Custom Errors in Rails - A Cleaner Approach
Often times I have seen programmers raise custom exceptions as, raise 'User is not authenticated', which is a very simple and readable approach but, does not have a well-defined structure to it. These are just strings littered all across your application and sometimes these strings get really really long. Ughh!