Im getting this error: NameError in Tourdates#list uninitialized constant Tourdate How may I fix uninitialized constant?
on 2006-04-02 05:55
on 2006-04-02 11:43
On 4/1/06, Ryan P. <firstname.lastname@example.org> 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.