Topic: Model Methods
Hi I have a question regarding creating Methods for Models.
Lets say I have a model User and House so what is the proper method for creating methods?
In the User Model I can use
or should I put the def initialize in the Home Model then call it
However I can't call call it from user
Can anyone help me adopt the correct way of doing things by give me an example?
I want to use as much of the rails method without creating new unnessary ones.
using rails console it will show argument errors, looks like I have to create my own methods to call it.
Last edited by limgw (2012-06-15 02:01:00)