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?
No `then` pls