Hi. I’m a newbie at this, so please bear with me.
I have several classes which model several corresponding tables. All of
them seem to work except one. I have not made many modifications from
the scaffold templates. However, with one class, Log, all methods give
me the following type of error
NoMethodError in LogController#create
undefined method `save’ for #WEBrick::Log:0x3b0cfb8
NoMethodError in LogController#list
undefined method `find_all’ for WEBrick::Log:Class
This is my entire Log class
class Log < ActiveRecord::Base
belongs_to :batch
has_many :links
end
Please help! Thank you in advance.