Rails gives you a lot of functionality for free if you know how to name things and where to place them in the file tree.
For example, look at the following stages of refactoring a list of child elements to the parent element, in the #show page.
class Article < ActiveRecord::Base