Uninitialized constant error

Im getting this error:

NameError in Tourdates#list

uninitialized constant Tourdate

How may I fix uninitialized constant?

On 4/1/06, Ryan P. [email protected] wrote:

Im getting this error:

NameError in Tourdates#list

uninitialized constant Tourdate

How may I fix uninitialized constant?

Make sure items in your application are named like this:

In a file named your_rails_project/app/models/tour_date.rb
class TourDate < ActiveRecord::Base

stuff here

end

…a table called ‘tour_dates’.
Other models that refer to TourDate have one or more of:
belongs_to :tour_date
has_many :tour_dates
has_one :tour_date

–Wilson.