Rails Engines tutorial from http://guides.rubyonrails.org/engines.html