"How to Build Simple Console Apps with Ruby and ActiveRecord" - пример разработки консольных программ на Ruby.