I transfered this to ruby 2 because the CGI module didn't escape sensitive characters properly, thus disabling the routing system. Will look into it further.