This is probably very straightforward and simple, but I am very new and noob on rubies on rails. I have a simple mail php script that I used on an older website, but now that I have switched to rails, I am not sure how to create the equivalent of this.
I tried using rails generate mailer Notifier , and then inside this I added a welcome method that was sent and emailed. However, in the user controller (when creating so that when the user makes an account, their email address is sent by greeting message), I just received an error message that was not announced by Notifier.
In the user controller I had
if @user.save Notifier.welcome(@user).deliver end
it did not work
source share