ruby: updated routes and controllers