# Preview all emails at http://localhost:3000/rails/mailers/reservation_mailer
class ReservationMailerPreview < ActionMailer::Preview
def weekly_reservation_update
user = User.joins(:profile).first
ReservationMailer.weekly_reservation_update(user, Date.today)
end
end
When this gem is included in a Rails app, I get an error when creating a mailer preview.
This is my mailer preview code: