The objective is to create a custom route so that /undead will go to the undead action on the ZombiesController.
My code:
TwitterForZombies::Application.routes.draw do
resources :zombies
match 'show_zombie' => "undead#show"
end
And the error…”Did not add the correct route, could not get to ZombiesController#undead.”
I’m not sure where i went wrong….
Your route notation should look like this:
So, the path is undead, the controller is zombies, and the action is undead: