fix routing for rails 4

The main repo seems to be dead so everyone is forking and patching this themselves