add angular factories for models and rails controllers