A facebook-like platform in Rails

Hi,

I have been thinking about creating a Rails application as a platform
that should let other applications run on my base application.
Something similar to Facebook. What are my best approaches?

Thanks much.
-subbu