I have a command-line management system set in place for a product im working on and for one of the features I need to see what variables are being called in a view. I have a system in place to do this but it requires the template being rendered, so i use render_to_string. But with the command line, I can't call this because it doesnt exist, obviously because im not in a controller.

How can I maybe simulate a request or get a controller setup to do this?
To load the RoR environment I just include environment.rb, which works fine for everything else.