All you need to do is, update the routes as below:
resources :members, shallow: true do
resources :emails
resources :events, shallow: true do
resources :items
end
end
This will create shallow routes for items
. Only for :index
, :new
, and :create
actions you would get nested routes prefixed with /events/:event_id
.