refactor rails controllers