I''m looking for a solution where I could load and render pages from one Rails application within another. I''m looking through the Rails code right now to see if this would even be remotely possible. Does anyone have any ideas? I know the obvious answer would be to proxy the app via Net::HTTP, but this is undesirable because: - I don''t always want to depend on having the "sub" app live on an HTTP port (even if firewalled, I would have the overhead of keeping 2 apps up). - I want as few external dependencies as possible. It would also be nice if the "sub" app required as few modifications as possible, to allow drop-in of existing applications. I''ve got the metaprogramming bug now that I''ve been reading Camping. I can''t help but think there would be a simple way to partition off the "sub" application, but I have no ideas. Brad -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3245 bytes Desc: S/MIME Cryptographic Signature Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060622/50566999/smime.bin
On 6/22/06, Brad Ediger <brad@bradediger.com> wrote:> I''m looking for a solution where I could load and render pages from one > Rails application within another. I''m looking through the Rails code > right now to see if this would even be remotely possible. Does anyone > have any ideas?you could render_component and have that grab the info from the other app via web services. -- - kate = masukomi
kate rhodes wrote:> On 6/22/06, Brad Ediger <brad@bradediger.com> wrote: >> I''m looking for a solution where I could load and render pages from one >> Rails application within another. I''m looking through the Rails code >> right now to see if this would even be remotely possible. Does anyone >> have any ideas? > > you could render_component and have that grab the info from the other > app via web services. > >Yeah, I was thinking about that. I think I might just write a few plugins to proxy loading of Rails apps (through Dispatcher) over DRb. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3245 bytes Desc: S/MIME Cryptographic Signature Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060622/965a445c/smime.bin