I’m having a small problem with catching the ActiveRecord::RecordNotFound exceptions. When I run the curl command from the second screencast I don’t get the clean output from the screencast. Instead I get the entire Sinatra exception page containing the ActiveRecord::RecordNotFound. I am using the code in the episode 2 tgz file.
This is the command:
curl –url http://localhost:4567/asides/1212.json
Any ideas what I am doing wrong?
Also, why do I have to restart Sinatra every time I do a change in order for it to recognize the new code? Something about development mode I am not getting?
Thanks in advance, Bjarki
p.s. I am on a mac os x leopard machine with version 0.9.2 of Sinatra