updates rails routes and index controllers. does not render JSON