Why do we check for the controller file?

Chris Farmiloe chris at oxdi.eu
Mon Sep 17 10:57:17 EDT 2007



> I suppose we could make a controller load paths array that your plugin
> could add to and check all the paths in said array. We just have to be
> careful about this stuff.


Maybe a way to "register" valid controllers, so no potentially costly  
filesystem calls
need to be made?

Merb::Controller.register 'MyPluginController', '/path/to/ 
my_plugin_controller'

Merb::Controller.registered?('MyPluginController')   ==>  true


RE: GET /404
There is a patch on the ticket ;)


Regards

Farms.
Design & Dev


Oxygen.
http://www.oxdi.eu



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070917/dcc44ac4/attachment.html 


More information about the Merb-devel mailing list