finished the rails view