在Rails 2中,我们可以为资源丰富的路由添加自定义新操作,例如:
map.resources :users,:new => {:apply => :get}
我们如何在Rails 3中实现同样的功能?
resources :users do get :apply,:on => :new # does not work new do get :apply # also does not work end end
有任何想法吗?
@H_301_10@