Misc small rails utilities