rails/rails — Issue #5335: route not recognized but executed correctly
Author: andreacfm
Created: 2012-03-08 09:54:12+00:00
State: open

My route

```ruby
# close direct access to public/system/pratiche
match "system/pratiche/(*path)", :to => proc {[403,{},["

Forbidden

"]]}
```
This route works fine.
But If I ask to rails to recognize it complains.

```ruby
Rails.application.routes.recognize_path("/system/pratiche")
```
And of course spec fails.

```ruby
{ :get => "/system/pratiche/1" }.should be_routable
```