title: NoMethodError undefined method mail for
body: <p>After setting up mailer (3.2.6) in Ruby on rails (3.2.6) I get this error:</p>
  
  <p>NoMethodError (undefined method `mail' for #):</p>
  
  <p>my user_mailer.rb looks like this:</p>
  
  <pre><code>class UserMailer &lt; ActionMailer::Base
    default :from =&gt; "test@test.com"
  
    def activation_mail(user)
      @user = user
      mail(:to =&gt; user.mail, :subject =&gt; "Registration")
    end
  end
  </code></pre>
  
  <p>I followed example provided here: <a href="http://guides.rubyonrails.org/action_mailer_basics.html">http://guides.rubyonrails.org/action_mailer_basics.html</a></p>
  
  <p>In configuration file I added this line: 
  config.action_mailer.delivery_method = :test
  I also tried with :smtp and configuration for gmail. </p>
  
  <p>What have I missed?</p>