working example from http://edgeguides.rubyonrails.org/engines.html