I need to create 550 rails model factories in a script. The only current way I can script that is by calling the command line generator in my script. I am just curious if anyone knows how to do this in a Ruby script without executing a command line generator.
You could just write a file with Ruby? That’s all the generator is doing.
That is what I am doing now. I just wondered if I could use the factory_girl_rails generator code that is already written in the gem, to avoid some work.