I can't preview my emails, at http://localhost:3000/rails/mailers/user_mailer
I always get this error: Mailer preview 'user_mailer' not found
spec/previews/user_mailer_preview.rb
class UserMailerPreview < ActionMailer::Preview
def contact_form
UserMailer.contact_form("[email protected]", "John", "Hello World!")
end
end
I tried to add:
config.action_mailer.preview_path = "#{Rails.root}/spec/previews"
but it didn't work.
Any ideas how to solve this problem?