title: NameError for ActionMailer within ActionController
body: <p>I'm on Rails 3.0, and I pretty much followed the steps on the <a href="http://api.rubyonrails.org/classes/ActionMailer/Base.html" rel="nofollow">API</a> to define a mailer by doing</p>
  
  <pre><code>rails generate mailer Notifier
  </code></pre>
  
  <p>Within my controller, I call <code>Notifier.mytemplate(...)</code></p>
  
  <p>When I go to the page, I see an error:</p>
  
  <pre><code>uninitialized constant MyController::Notifier
  </code></pre>
  
  <p>Seems like something is not getting initialized correctly, and it's not realizing that Notifier is already defined in <code>app/mailers/notifier.rb</code></p>