I think u should give another name to your model. It seems that Log is
already taken. Try that for a change.
On 6/1/06, lumeda <lumeda@sbcglobal.net> wrote:>
> 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.
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Cheers,
ioana k&a
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060531/0aefcdf1/attachment.html