In Rails 2.3, I could do the following:
map.connect "/posts/favorites", :controller => :posts, :action =>
":index", :filter => "favorites"
But it seems that the "match" command in Rails 3 doesn't accept
parameters. So, the following doesn't work:
match "/posts/favorites" => "posts#index", :filter => "favorites"
Is there any way to pass a parameter in route like in 2.3 ?
Thank you!
--
Posted via http://www.ruby-forum.com/.
Maybe this feature was removed from Rails 3?
I'd file a bug report.. if it's missing on purpose they will surely tell you.
--
Greg Donald
destiney.com | gregdonald.com
Just discovered a way, using :default => { :filter =>"favorites" }
Unfortunately, it doesn't work :) But it is on Rails Guides. I just
filled a bug report here
https://rails.lighthouseapp.com/projects/16213/tickets/119-default-route-option-doesnt-work