i have to develop a mailer using ruby on rails and i keep getting that error, I don't know how to correct it, I have tried a lot of methods. This is my code
class ApplicationMailer < ActionMailer::Base
layout 'application_mailer'
def mailer(user)
@user = user
mail to: user.email, subject: "Welcome"
end
end
create mailer.html.erb
under app/views/application_mailers
mailer action need view to render so it is searching for application_mailers/mailer.html.erb which is missing I think