On Dec 29, 2005, at 12:04 AM, Paulino Calderon wrote:
> Hello.
> 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:
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/
> helpers/active_record_helper.rb:106:in
> `error_messages_for''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
> action_controller/templates/scaffolds/new.rhtml:3
>
> The database contains a table with 5 fiels, just the regular stuff,
> id,title,content,poster,date, any idea why this thing isnt working?
>
> Thanks.
>
>
> --
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
Paulino-
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.
Cheers-
-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org
509-577-7732