Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Namespace is not compatible with multi_route extension? #39

sinm opened this Issue · 6 comments

4 participants


Look here for some tests.


Any progress on this?


No, sorry. The way they're implemented I wasn't able to figure out a way to make them compatible. There has to be a way, I just couldn't see it.


Yeah I messed around with it for an hour or so too and didn't see an obvious way. My ruby skills are lacking.


Seems like namespace doesn't play nice with most Sinatra add-ins. (Unless I'm mistaken) it's virtually worthless unless you are going to do strictly plain-vanilla Sinatra code. Sigh...


#136 is a duplicate of this, and I added an idea there to get multi_route working with namespace. However, you are correct that namespace is not going to work by default with other Sinatra extensions that modify how routes are defined, or anything else where the class level behavior is modified.


In short, the answer to the original question is: "No", unfortunately.

Having dug into the namespace extension, I don't think that it is feasible to make it work with the other extenions. I'd be happy to help document other ways of accomplishing workarounds.

@sinm I'm going to close this, but if you would like help finding a workaround, please feel free to post an issue describing what you're trying to accomplish.

@kytrinyx kytrinyx closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.