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
controller

please help me

thanks

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
     "Hello!"
end

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
defined.