ROR 2.0 & undefined method `table_name'

Hi all,

I've got stuck with this. Here's the error message:
NoMethodError in Account#index

Showing account/index.rhtml where line #4 raised:

undefined method `table_name' for Upload:Class
Extracted source (around line #4):

1: <h1>My account</h1>
3: Login name: <%= current_user.login %> <br />
4: Files uploaded: <%= current_user.uploads.find(:all).count %>
5: <br />
6: <%= render :partial => 'layouts/menu' %>

its a basic acts_as_authenticated user model with has_many :uploads
any suggestions on how to fix this?

I got that error too (but in Rails 1.2.3)

I only added line7 in user_controller to have logs. The app works
perfectly without it. And I also tried dropping/migrating the DB.

Look at the message. You have a naming conflict between WEBrick::Log and the Log class you defined. Can you use WoodenLogs or something like that?