Check out example codes for "preview mailers rails". It will help you in understanding the concepts better.

Code Example 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

Learn ReactJs, React Native from akashmittal.com