> It's not a global function. It's an instance method added to all > controllers
Ok, but I want to render a template in this function. How can I do that if I put it outside the controller (for example, into a separate class in a /lib folder)? Other answers are really helpful, thank you :) Actually I still cannot force my Mailer to work, it reports about "undefined method `activation_email'", although this method exists and is an instance (not class) method.... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

