federomero/sinatra-named_routes — pull request #2 by al (2014-04-13 10:43:02+00:00)
Title: Handle optional trailing slashes in route definition.

It is common to add ```/?``` at the end of your route definitions to make them work with or without trailing slashes, however doing so can result in the generation of paths like ```/path/??key=value```.

This patch simply removes any ```/?``` from the end of the generated path before any query params are appended.