edited rails app tutorial