user2490003
user2490003

Reputation: 11900

ActionMailer preview_path is not the RSpec default

I have an app that's throwing the following error every time the environment is loaded.

Action Mailer preview_path is not the RSpec default. Preview path is set to: spec

I'm not even sure what the preview_path here is or where it might be configured. Is there a way to adjust this or disable it?

Thanks!

Upvotes: 1

Views: 398

Answers (1)

Paul Fioravanti
Paul Fioravanti

Reputation: 16793

You probably have the following in your config/environment/development.rb file:

config.action_mailer.preview_path = 'spec/'

As for what the preview path is, it's to preview emails in your browser.

Not sure why it would be erroring. Perhaps try commenting out the config line above if you don't need email previewing?

Upvotes: 3

Related Questions