标签: ruby-on-rails ruby-on-rails-3 resources routing
我希望resources :users但不需要show操作。任何方式在一行中做到这一点?
resources :users
show
(类似于resources :users, :without => :show)
resources :users, :without => :show
答案 0 :(得分:9)
使用:except
:except
resources :users, :except => :show