I am making a rails generator, and instead of passing a filename as an argument, I would like it to open in a terminal editor, and once I save a file, read that file and continue.
This is similar to how git commit works. When I do git commit, it opens a file, I save, and it continues, but I'm not sure how I can go about doing the same thing in ruby. Any insight would be appreciated.