Forum: Ruby on Rails Initializing a model object (descend. of ActiveRecord::Base)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2006-05-10 18:43
I am attempting to add a custom initialization method to my model
object.

However, when I do this, I start getting complaints about
"method_missing" on my model attributes (that should be handled by the
ActiveRecord::Base mapping stuff).

Is there something special that I have to do to add an initialize method
to a descendant of ActiveRecord::Base?

I thought that calling super.initialize inside of my initialize would
work but apparently it doesn't.

Thanks,
Wes
This topic is locked and can not be replied to.