I was just playing around with the new routing dsl to answer someone's question on the general rails forum.
I wanted to see how Rails3 handled globbed routes. So I added this to routes.rb
get 'forum/*path' , 'forum#show'
And had the show action just display the params.
with a URL of /forum/a/b/c
I got {"path" => "a/b/c"}
which is a change from Rails 2.x which would give
{"path" => ["a", "b", "c"]}
for the equivalent globbed route
map.connect "forum/*other", :controller => :forum, :action => :show, :conditions => {:method => :get}
Is this an intentional change or a bug?
I do see it's documented that way in the edge version of
So I guess its intentional, but just wanted to make sure.