Uninitialized constant error


#1

Im getting this error:

NameError in Tourdates#list

uninitialized constant Tourdate

How may I fix uninitialized constant?


#2

On 4/1/06, Ryan P. removed_email_address@domain.invalid 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.