I have a rails application myrails.
I have generated a UserMailer. It created:
- myrails/app/mailers/user_mailer.rb
- placeholder for templates of mails: myrails/app/view/user_mailer/…’
I wrote an action in user_mailer.rb and the corresponding template in myrails/app/view/user_mailer/. I am able to call UserMailer method from any controller in myrails/app/controllers/ but I am not able to call UserMailer from myrails/bin/myscript.rb . Is it possible to do that ?