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
- 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.