Results 1 to 3 of 3
Jan 31, 2006, 17:13 #1
- Join Date
- Jun 2004
- 0 Post(s)
- 0 Thread(s)
[RoR] Calling render methods from a command line script
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.
Feb 4, 2006, 16:53 #2
Feb 7, 2006, 16:45 #3