# Preview all emails at http://localhost:3000/rails/mailers/timeslot_mailer
class TimeslotMailerPreview < ActionMailer::Preview

  # Preview this email at http://localhost:3000/rails/mailers/timeslot_mailer/tutor_scheduled
  def tutor_scheduled
    timeslot = Timeslot.where.not(student_id: nil).first
    TimeslotMailer.tutor_scheduled(timeslot)
  end

  # Preview this email at http://localhost:3000/rails/mailers/timeslot_mailer/student_scheduled
  def student_scheduled
    timeslot = Timeslot.where.not(student_id: nil).first
    TimeslotMailer.student_scheduled(timeslot)
  end

end

# Preview all emails at http://localhost:3000/rails/mailers/timeslot_mailer
class TimeslotMailerPreview < ActionMailer::Preview

  # Preview this email at http://localhost:3000/rails/mailers/timeslot_mailer/tutor_scheduled
  def tutor_scheduled
    timeslot = Timeslot.where.not(student_id: nil).first
    TimeslotMailer.tutor_scheduled(timeslot)
  end

  # Preview this email at http://localhost:3000/rails/mailers/timeslot_mailer/student_scheduled
  def student_scheduled
    timeslot = Timeslot.where.not(student_id: nil).first
    TimeslotMailer.student_scheduled(timeslot)
  end

  # Preview this email at http://localhost:3000/rails/mailers/timeslot_mailer/tutor_cancel
  def tutor_cancel
    timeslot = Timeslot.where.not(student_id: nil).first
    student = timeslot.student
    TimeslotMailer.tutor_cancel(timeslot, student)
  end

  # Preview this email at http://localhost:3000/rails/mailers/timeslot_mailer/student_cancel
  def student_cancel
    timeslot = Timeslot.where.not(student_id: nil).first
    student = timeslot.student
    TimeslotMailer.student_cancel(timeslot, student)
  end

end

Add cancellation notification preview methods
Add cancellation notification preview methods

Add methods to allow browser preview of notification to student and
tutor that a session has been canceled.
