Rails fixes

Pushing this through the PR process for paper trail and so @ckolderup and @negatendo can observe. I THINK this gets us to a place where we can flip the switch on the Rails port! We might want to…write tests first to be sure?
I don't think this flag is needed after the `sub!` stuff has been removed from `fix_pathname` but who knows