An in-progress rewrite of spoil.rs from PHP to Ruby on Rails