How to redirect your Rails logs somewhere

Sometimes you might want to have your logs at designated logging service, like logbook.me or logworm.com, because for example, your hosting environment is limited in keeping logs, like Heroku. At least one solution you could try is a setting config.logger...

Finding lexical nesting for self in Ruby

While I have been working on code communicating with Google Data API I found that it would be very convenient to enclose components specific to particular Google service under same namespace, particularly because they could share common constants defined in...

Getting poisoned by Cucumber

Recently I’ve been working on quite large system implemented in Rails. Virtually every feature or requirement has an acceptance Cucumber test which is kind of great, ‘cause it gives a sense of confidence the things are not really broken. To...

Keeping a newrelic eye on Sinatra app

I’ve recently wanted to see what can I do about performance of my Sinatra app and decided to spend some time playing with New Relic RPM tool. I’ve found it useful although somewhat not exactly what I had been expected....