views:

33

answers:

0

Hi, I have used this route in rails 2.3.5 - basically, I wanted to be able to parametrize my controller that I send to the named route.

do_action "do_action/:controller" , :action => "do_action"

what is the equivalent of this in rails3 routes?

This doesn't work:

match "do_action/:controller" , :to => ":controller#do_action", :as => "do_action"

thanks