Displaying 1 result from an estimated 1 matches for "mycrudcontrol".
2007 Mar 19
3
controller_name with dynamic controllers
...d-shared-controllers.html
Now, in my spec, I would like to create a controller which inherits
from the generic CRUDController, without actually creating the
controller. This controller is *only* for testing.
How can I do this? I can''t do something like this:
Object.const_set("MyCrudController", Class.new(CRUDController))
because the method "controller_name" will complain of setting the
constant twice.
Any ideas?
Best,
Scott Taylor