# Class does not inherit (?) ActionRecord::Base

**URL:** <https://www.ruby-forum.com/t/class-does-not-inherit-actionrecord-base/62156>\
**Category:** Rails\
**Created:** [May 31, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/class-does-not-inherit-actionrecord-base/62156 "2006-05-31T23:06:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumeda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/d2c977/32.png) [@lumeda](https://www.ruby-forum.com/u/lumeda)\
**Post date:** [May 31, 2006, 11:06pm UTC](https://www.ruby-forum.com/t/class-does-not-inherit-actionrecord-base/62156/1 "2006-05-31T23:06:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lumeda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/d2c977/32.png) [@lumeda](https://www.ruby-forum.com/u/lumeda)\
**Post date:** [May 31, 2006, 11:13pm UTC](https://www.ruby-forum.com/t/class-does-not-inherit-actionrecord-base/62156/2 "2006-05-31T23:13:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lumeda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/d2c977/32.png) [@lumeda](https://www.ruby-forum.com/u/lumeda)\
**Post date:** [May 31, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/class-does-not-inherit-actionrecord-base/62156/3 "2006-05-31T23:23:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lumeda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/d2c977/32.png) [@lumeda](https://www.ruby-forum.com/u/lumeda)\
**Post date:** [June 1, 2006, 1:29am UTC](https://www.ruby-forum.com/t/class-does-not-inherit-actionrecord-base/62156/4 "2006-06-01T01:29:42Z")

</div>

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.
