What’s the best way to handle a find that doesn’t find anything?
@result = Foo.find(:first, :condition => “some condtion string”).name
if the condition is not met Foo.find stops the application with
What is the best way to gracefully trap this error and return something
meaningfull to the calling method?
“Work, work, work…there is no satisfactory alternative.”
— E.Taft Benson