M
malugu satyajit
Note: parts of this message were removed by the gateway to make it a legal Usenet post.
Hello,
I have an rails application that has almost similar function for three
classes. So I am thinking to create a parent class and then the sub classes
inherit from it. But rails already inherits from ActiveRecord(models) or
ApplicationController(controller).
So how can I inherit from others classes. My my ruby knowledge it is modules
and then you mixin the module in your class.
Now my question, where you write the module in rails is it in controller or
model? Can some one provide me links or guidance.
--
Regards,
M.Satyajit
Graduate Student,
Department of Computer Science,
NCSU.
www4.ncsu.edu/~smalugu
Hello,
I have an rails application that has almost similar function for three
classes. So I am thinking to create a parent class and then the sub classes
inherit from it. But rails already inherits from ActiveRecord(models) or
ApplicationController(controller).
So how can I inherit from others classes. My my ruby knowledge it is modules
and then you mixin the module in your class.
Now my question, where you write the module in rails is it in controller or
model? Can some one provide me links or guidance.
--
Regards,
M.Satyajit
Graduate Student,
Department of Computer Science,
NCSU.
www4.ncsu.edu/~smalugu