About
Hi! I'm Avdi Grimm, and this is my software development blog. More...
Books and Screencasts
Objects on Rails
A developer notebook on applying classic Object-Oriented principles to Ruby on Rails projects.
-
Subscribe
-
Recent Posts
Archives
Categories
Meta
Tag Archives: rails
Creating Cowsays.com Part 2: Unit Tests and Cow Files
Part two in my “live”-style screencast series is now available! Watch me code up a small web app from scratch using test-driven development. In this hour-long episode, I switch from integration testing to unit testing in order to drive out … Continue reading
Posted in Announcements, Screencasts
Tagged bdd, heroku, rails, ruby, screencasts, sinatra, tdd
Leave a comment
New maintainer needed for NullDB
NullDB, for those who don’t know, is a null backend for ActiveRecord. Unlike RSpec’s stub_object, rather than raise an exception on DB access, will NullDB DB interactions simply become no-ops. This is handy for things like testing after_save hooks in … Continue reading
Early access beta of “Objects on Rails” Now Available
UPDATE: Objects on Rails is now complete and freely available online. Often, at conferences and users group meetings, I find myself discussing the intersection of Ruby on Rails, Object-Oriented development, and Test-Driven Development, and I’ll mention something like “I prefer to develop my … Continue reading
DRYing up your validations using DB reflection
Avoiding silent truncation of your model fields requires putting length validations on them. But this can introduce duplication of knowledge. In this post I demonstrate how to pull limit information directly from the DB into your model validations. Continue reading
View Sandboxes for Rails
Designing HTML views is an iterative, interactive process by nature. And anything that slows down the iterations, slows down development. I was working on a form recently where the steps to show it went something like this: Go to the … Continue reading
RailsConf, BohConf, DCRUG Video
DCRUG First off, I had a great time at DCRUG last night. I enjoyed getting a peek at Jeff Casimir‘s “pre-alpha” presentation on Rails views. And Joel Strait‘s live demo of BEATS was very cool. I did something a little … Continue reading
Linkdump #7
Hacker Chat: Pinboard Creator Maciej Ceglowski Talks About Why Boring Architecture is Good, and More Wise words. tags: development I think many developers (myself included) are easily seduced by new technology and are willing to burn a lot of time … Continue reading
Posted in Links
Tagged architecture, bdd, java, javascript, literate programming, logging, nodejs, rails, rspec, ruby, tdd, testing
Leave a comment
Getting Started with Erector in Rails 3
A quick guide to getting up and running with the Erector templating library. EDIT: Here’s the fork and branch I used to get it working.
Linkdump #6
agile/db_branch – GitHub I’d been looking for a way to manage databases for multiple branches of an app, and this is one of the (many) suggestions. tags: development database ruby rails git Rails plugin to play nice with git branching … Continue reading
Posted in Links
Tagged c++, c++0x, clojure, data structures, datamapper, javascript, links, memoization, parsing, rails, ruby, Ruby on Rails
Leave a comment




