Blank routes are unreachable #231

Closed
jamesmartin opened this Issue Mar 28, 2011 · 1 comment

Comments

Projects
None yet
2 participants

This behaviour was introduced in v1.1 to make Sinatra play nice with Rails3.

Blank routes are punted to the '/' route, and so remain unreachable:

get '' do
   #unreachable
end

This causes problems when trying to link to static assets relative to the root path. Examples can be seen in these two gists.

The workaround is to check if request.path_info.empty?, which is not pretty.

Owner

rkh commented Mar 30, 2011

handle empty route patterns as expected without breaking rails 3 compatibility, closed by f438be2

rkh closed this Mar 30, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment