Call Model Method

Hello Everyone

any one know how to call model method in controller ?

I have one method that is in model and want to call from another

please help me


If you make sure that method is defined with "self", you can call it
from the controllers. For example,

#A Method that can be called from a controller.
def self.my_hello_string

Now you can say Model.my_hello_string from a controller, and it will
return what you expect, instead of complaining that the method isn't