Updated to Ruby 2 and Rils 4 to follow the demo