Wes Gamble
2006-May-10 16:44 UTC
[Rails] Initializing a model object (descend. of ActiveRecord::Base)
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 -- Posted via http://www.ruby-forum.com/.
Possibly Parallel Threads
- text_field doesn''t call overridden ActiveRecord getters
- Theoretical: Should models be subclasses of AR or mix it in?
- Simple: How to use TextHelper in a controller
- Session mgmt. bug - ActiveRecord & MemoryStore session store
- PLUGIN newbie: How do I use an installed plugin