rails rewrite of rotten tomato rating predictor