To cap it all, this lack of Rails is preventing Profile Manager from running.

Does anybody know what could be going wrong here? I've tried a clean install of 10.7 (not Server, though) on another machine, and Rails runs fine in that. I'm not particularly keen on nuking and reinstalling my main system, though!