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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Wes G. (Guest)
on 2006-05-10 20:43
I am attempting to add a custom initialization method to my model

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.

This topic is locked and can not be replied to.