[Rails] Funcitonal test suggestion

Scott Barron scott at elitists.net
Fri Dec 10 16:21:46 GMT 2004


On Sat, Dec 11, 2004 at 03:16:38AM +1100, Gavin Sinclair wrote:
> Something else I noticed while reading Steve's guide to testing in
> Rails.  While testing the HomeController:
> 
>   class HomeController; def rescue_action(e) raise e end; end
> 
> I bet people have written that line of code, or similar, many times.
> Is there a shortcut in Rails 0.8?  In 0.9?  Will it go away altogether
> with the new metaprogramming features?

This is automatically generated by the controller generator.  You
shouldn't have to type it out ever.

-Scott


More information about the Rails mailing list