Topic: PunBB inside Rails - an apache tweak and cookie injection

I've recently worked out how to get my existing Rails app to house a PunBB forum install as well as manage the cookie creation/deletion for PunBB.  This allows my Rails app to have single-sign-on with the forum under the same domain.  My Rails app handles the usernames/passwords for the community and just syncs to the PunBB users table when necessary.

There were two parts - the first was getting PHP to render correctly...

Running PHP within Rails

The second was manipulating the cookie (for single-sign-on)...

Generating a Rails and PunBB (and DokuWiki) shared cookie

I hope this is helpful to someone - I couldn't find it documented anywhere else.