Pretty easy factory to use in non rails and rails apps.