I believe you want to call a controller from another controller .. via REST.
Since your controllers are ancestors of the Merb::Rack::Application class, you could do a ControllerName.call(env_hash) (see the source of request() to see how it is implemented) and it should work fine. I would imagine that you could specify the appropriate REST method in the env_hash and the parameters ... Also, have you looked at Merb Parts ? Best Regards, Ahsan Ali On Thu, Dec 11, 2008 at 3:32 AM, phatmann <[EMAIL PROTECTED]> wrote: > > I am sure there is a simple answer to this, but I could not find it > anywhere. > > We have a bunch of resource controllers that are working well. We have > some other controllers that need to access these resources via REST. > For example, we want to create a new Foo resource via a POST rather > than access the Foo model directly. I could not find any calls in Merb > to facilitate this. There is a request() method, but it is part of the > Test framework. Clearly, I could use Ruby Net::HTTP for this, but I > just wondered if there was a more merbish way to do it. > > Thanks. > > ..tony.. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
