Any idea why this won't work? I'm trying to make another call to get all the tweets from this zombie.
<% t = Tweet.where(:id => zombie.id) %> <% if t.size > 1 %> <%= 'SMART ZOMBIE' %> <% end %>
The error I am getting is:
#<ActionView::Template::Error: uninitialized constant ActionView::CompiledTemplates::Tweet>
Or do you think the tutorial is designed to work with only one solution, and you cannot call to access the tweet table?
source share