Example Rails 4.0.2 application which uses an inline database view to do calculations.