search for: any_action

Displaying 2 results from an estimated 2 matches for "any_action".

2006 Aug 17
3
How to save output "render :action=>:any_action" to a file?
I need to save the output of my rails app to a file. i.e. instead of rendering a page when using "render :action=>:any_action" i want the output to be saved to a file. Anyone got any ideas? Thanks Chris -- Posted via http://www.ruby-forum.com/.
2007 Oct 26
5
specing rescue, ensure and else blocks of an Exception
Greetings, I''m using rspec with rcov for my applications and there is one issue which I cannot solve nor can find any proper information regarding it: specing what is in a rescue block in case of an exception. I''m using Ruby on Rails and I usually make use of exceptions in my controllers, like the following example: def action @foo = Foo.find(1)