Class does not inherit (?) ActionRecord::Base

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.

I just realized my typo on the subject. I meant ActiveRecord, but I
assure you it is not misspelled in my code!

I think u should give another name to your model. It seems that Log is
already taken. Try that for a change.

Thank you! Grazie! Thank you!

I feel a bit foolish for struggling with something so simple!

Now it works beautifully.

Ioana K. wrote:

I think u should give another name to your model. It seems that Log is
already taken. Try that for a change.