Best ways to share static content across apps...suggestion w

We’ve got several apps on the server:

/app1
/app2
/app3

and we have some shared content here:

/shared_includes

Maybe I’m blind, but I can’t find a good way to include say
/shared_includes/mything.html inside an rhtml template.

The best thing I’ve found is a symlink under /public to it and then do
a <%= open(ugly_path).readlines %>

Is there a better way?

Thanks!

I haven’t encountered this problem before, but a few alternatives come
to
mind.

  • Store the content in a database
  • Access the content through some webservice
  • NFS or some other similar FS solution