Trailing slashes in URLs causing routing errors in 2.3.0 RC1
7 views
Skip to first unread message
Wincent Colaiuta
unread,
Feb 22, 2009, 5:37:22 AM2/22/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
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?
Cheers,
Wincent
Wincent Colaiuta
unread,
Feb 22, 2009, 5:57:41 AM2/22/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Created Lighthouse ticket to track the regression: