On 17.12.2008, at 23:19, Jacques Crocker wrote:

> Seems like it would be even simpler if before defining each route (for
> a resource), it did a respond_to? on the controller class to check for
> the associated method. If the method doesn't exist, then just don't
> define the route.


Routes are compiled on boot, way earlier than application classes are  
loaded. So it is effectively impossible without doing a full blown  
boot (because classes may have dependencies listed in init.rb and such).

MK


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to