Following the examples in Rails in Action book