random thoughts

Breaking Rails, part 2, putting your RoR inside your PHP

Yo dawg, I heard you like…

Purely theoretical (obviously) case: you have existing php app and some legacy rails code that you refreshed a little bit and now someone asks you one simple question - why can’t you just put that code into that code and run it as one app? Sometimes you can reason, sometimes not. But let’s do it - I mean seriously - let’s create some kind of hybrid that will work transparently and silently for the user. Unleash your imagination and get ready for breaking every programming paradigm; treat it like a sport and get ready :).

Let’s ever get a little bit further, let’s create one rails app that will distribute its content for two different domains. Where do we start?

Breaking Rails, part 2, putting your RoR inside your PHP