Forum: Ruby on Rails NoMethodError problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
9b23fde152d9b9025d860c376f402c3e?d=identicon&s=25 Paulino Calderon (nah)
on 2005-12-29 09:04
Id like you to help me with something here, i m trying to create a log
manager just for fun but I cant make it work since the beginning.
I created my project, configured the db, initialized my model Log and
then my controller Log, then im just trying to use scaffold :log for the
controller but I cant make it work, the error says:

undefined method `errors' for #<WEBrick::Log:0x37f7760>

and a bunch of errors like:

The database contains a table with 5 fiels, just the regular stuff,
id,title,content,poster,date, any idea why this thing isnt working?

132a94ca65959bda6c74fae54bff2425?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2005-12-29 16:43
(Received via mailing list)
On Dec 29, 2005, at 12:04 AM, Paulino Calderon wrote:

> and a bunch of errors like:
> --
> _______________________________________________
> Rails mailing list


	It looks like you are running into a reserved word 'Log' webrick
uses that internally. So you will need to change that to something
else. Maybe MyLog or whatever you come up with. That should get you
over the hump.


-Ezra Zygmuntowicz
Yakima Herald-Republic Newspaper
9b23fde152d9b9025d860c376f402c3e?d=identicon&s=25 Paulino Calderon (nah)
on 2005-12-29 18:41
Thanks! That solved the problem, i definetly need to learn more about
ruby now.
7bfd6615886c2116a5338a22b334700b?d=identicon&s=25 Jason Horn (one09jason)
on 2006-06-14 18:06
I have the same problem, only I'm following the instructions witht the
"Rolling with Ruby on Rails" tutorial.  I have tried creating additional
models and correponding controllers, but I get the same error, so I
don't think a reserved word is the problem.

Can anyone help a Rails beginner?
This topic is locked and can not be replied to.