Rails rewrite of Rodeo