In this case, the listing is also its own model (resource). You will also need resources
for a printout. If it only has an action show
, you can restrict it like this:
resources :states do
resources :cities do
resources :listings, only: [:show]
end
end
source
to share