Forum: Ruby on Rails Trailing slashes in URLs causing routing errors in 2.3.0 RC1

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Wincent C. (Guest)
on 2009-02-22 12:39
(Received via mailing list)
I just noticed that after updating an app to 2.3.0 RC1 (from 2.2.2)
Rails now raises routing errors when it sees a trailing slash on the
end of URLs for resources defined using the ":as" option.

eg. given a resource like this:

     map.resources :articles, :as => :wiki

Accessing "/wiki" works, but trying "/wiki/" does not. (Both used to
work in 2.2.2.)

With a resource that doesn't use an ":as" setting:

    map.resources :posts

Both "/posts" and "/posts/" work as they did before.

Anybody else seen this? Could it be a bug?

Wincent C. (Guest)
on 2009-02-22 12:58
(Received via mailing list)
Created Lighthouse ticket to track the regression:
This topic is locked and can not be replied to.