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:
match 'path' => 'controller#action'
So, the path is undead, the controller is zombies, and the action is undead:
match 'undead' => 'zombies#undead'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With