📜  预览 mailers rails - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:50.210000             🧑  作者: Mango

代码示例1
# located in test/mailers/previews/notifier_mailer_preview.rb

class NotifierPreview < ActionMailer::Preview
  # Accessible from http://localhost:3000/rails/mailers/notifier/welcome
  def welcome
    Notifier.welcome(User.first)
  end
end