Update rails and edit application