running 2.3.2
simple case (db table created : 'emails' with a :type field)
I have the following Email model
class Email < ActiveRecord::Base .... end
class RequestEmail < Email .... end
TESTING in the console : script/console Loading development environment (Rails 2.3.2)
Email.new
=> #<Email id: nil, sender_email: nil, subject: nil, content: nil, user_id: nil, created_at: nil, updated_at: nil, title: "mr", firstname: "", lastname: "Anonymous", type: nil> (Note : type is nil, not "Email" ... ?)
RequestEmail.new
=> #<RequestEmail id: nil, sender_email: nil, subject: nil, content: nil, user_id: nil, created_at: nil, updated_at: nil, title: "mr", firstname: "", lastname: "Anonymous", type: "RequestEmail">
exit
now TESTING again.. script/console Loading development environment (Rails 2.3.2)
RequestEmail.new
NameError: uninitialized constant RequestEmail ...const_missing
I'll appreciate some feedback , should I buy a 2nd glass ? LOL
thanks