I'm following the Twitter for Zombies tutorial and i'm having trouble getting the link_to method to work.
In my Tweet controller I have:
@tweet = tweet.find(params['id']);
In my view i've tried the following:
<%= link_to @tweet.zombie.name, @tweet.zombie %>
<%= link_to @tweet.zombie.name, zombie_path(@tweet.zombie) %>
But I keep getting the error:
undefined method `zombie_path' for #<#<Class:0xab1fd00>:0xa1d5d80>
Any ideas whats up with this? Thanks.