Rails mailer previews not available from spec/mailers/previews : <p>I would like to be able to preview my emails in the browser.</p>

<p>I am using Rspec and have the following preview setup in spec/mailers/previews:</p>

<pre><code># Preview all emails at http://localhost:3000/rails/mailers/employee_mailer
class EmployeeMailerPreview &lt; ActionMailer::Preview

        def welcome
            Notifier.welcome_email(Employee.first)
        end

    end
</code></pre>

<p>When I try to access this I get the following error:</p>

<pre><code>AbstractController::ActionNotFound at /rails/mailers/employee_mailer
Mailer preview 'employee_mailer' not found
</code></pre>

<p>However, when I put the code for the preview inside of tests/mailers/previews
it works.</p>

<p>How can I configure my Rails app to look for the previews inside of spec/mailers/previews?</p>
