Hi all!

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/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to