Naofumi Kagami

A place to rest my thoughts

Embracing Rails Concerns Without Code Reuse

The following tweet from Matt Swanson received quite a number of positive responses. I too, use the Concern pattern very often and find it extremely useful. Unfortunately, there are people who dislike Concerns and prefer a more rigid approach. Here I would like to provide some sources on how to use Concerns, and also outline

“Sustainable Web Development with Ruby on Rails” or is it?

David B. Copeland has a new book, “Sustainable web development with Ruby on Rails”, describing how to manage and organise your Ruby on Rails applications. Of particular interest to me is the discussion on whether to put your business logic into your ActiveRecord models, or into Service objects. I personally am a strong supporter of