Problem with v.story in Chapter 7 of Book
This topic was posted on a few months ago. It seems that others had the problem that I am having. However, no solution has been posted.
I've created the Vote model:
class Vote < ActiveRecord::Base
which belongs to the Story model:
class Story < ActiveRecord::Base
validates_presence_of :name, :link
however in the Rails console, if I try to find the story for a vote entry, I get:
NoMethodError: undefined method `story' for #<Vote:0x2826730>
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/base.rb:1863:in `method_missing'
I've been following the book basically word-for-word and I can't figure out why I keep getting this error.
Thanks in advance, Roseanne