Merge two different projects

I have created two different projects in ruby on rails, a something
like google docs and the other is google calendar. Now, what I wanted
to do is merge this two projects. Is that possible in ruby on rails?
Is there any codes that could merge these two?