Stuck in Chapter 7 Getting no method error.
Well it was bound to happen Im finally stuck.
Chapter 7 Fig 7.10. Does not show up
all I get is an error:
NoMethodError in Story#show
Showing story/show.rhtml where line #3 raised:
undefined method `votes_count' for #<Story:0x126a218>
Extracted source (around line #3):
2: <span id="vote_score">
3: Score: <%= @story.votes_count %>
5: <%= @story.name %>
I've gone back over the coding and the documentation several times
with no luck, Also I checked my tables have corresponding records
for each other with good info (no null data)
for whats it worth:
Mac os X Leopard
Ruby installed as recommended by the book
Database is set to mysql (not sqllite3)
sucks to be stuck!!!!!