fixes #8726 - recreating the hash_for method in the routes helpers

we heavily rely on the removed hash_for methods for url helpers. therefore, instead of rewriting about 1000 lines of code, let's have that method return from the dead.