Yesterday i needed some quick and dirty JSON output using Sinatra, ‘cause I was studying how HTTP requests works in iOS. To create JSON response with Sinatra, just do something like that:
I am open sourcing a project that I have been using a lot lately. You can easily define routes and some rules...
Benchmarking Ruby and Erlang
Open sourcing a lib I created to benchmark Rails apps, using ActiveSupport::Notifications