Archive for the “Ruby on Rails” category
Idiomatic shared state in RSpec
by Laust Rud Jacobsen on February 17, 2011
RSpec is an extremely convenient tool for structuring and writing specs, and I use it on all my ruby-projects. One set of built-in helpers I’d like to cheer on a bit are let and let!, as they can greatly simplify (…)
Identify what your Ruby process is doing
by Laust Rud Jacobsen on February 2, 2011
Quick diagnostics of production issues become a lot easier with a direct way to inspect the running process. Ever wondered exactly what the program is doing right now, without adding a lot of slow logging? With this gem in place, (…)
Quick data import and linking in Rails
by Laust Rud Jacobsen on January 17, 2011
Some web-applications have to ingest an enormous amount of new data on a regular basis. Import scripts easily become an ever-growing procedural mess, annoying to maintain. In this post I show a bit of code which can be used to (…)