Im getting this error:
NameError in Tourdates#list
uninitialized constant Tourdate
How may I fix uninitialized constant?
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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs