Override accepts_nested_attributes in Rails
Among other great features of ActiveRecord in Rails, I find accepts_nested_attributes_for is one of the most useful. It was introduced in Rails 2.3 and allows you to save attributes on associated records through the parent.
If you are not familiar with accepts_nested_attributes_for method, I suggest you read the official documentation before reading this article.