我在routes.rb in Rails 3
应用程序中有这样的代码:
scope 'robokassa' do
match 'paid' => 'robokassa#paid', :as => :robokassa_paid # to handle Robokassa push request
match 'success' => 'robokassa#success', :as => :robokassa_success # to handle Robokassa success redirect
match 'fail' => 'robokassa#fail', :as => :robokassa_fail # to handle Robokassa fail redirect
end
我想在Rails 2
应用程序中写这样的范围。实现这一点的正确方法是什么?rails 2 是否支持范围?