标签: ruby-on-rails routes
我在命名空间'Admin'
admin.resources :orders do |order| order.resources :attachments, :only => [:show, :destroy] end
如何将其转换为rails 4?
答案 0 :(得分:0)
这应该有效:
resources :orders do resources :attachments, only: [:show, :destroy] end