title: Rails NoMethodError (undefined method `something ' for Time:Class): not so trivial error
body: <pre><code>class Email &lt; ActiveRecord::Base
    # some code
    after_create :send_verification_email
  
    def send_verification_email
      puts 'edit 1', Time.now # it prints the actual date
      user_is_new = Time.now - user.created_at &lt; 30 # This line pops an error
      unless verified || user_is_new # less than 30 seconds
        #some other code
  </code></pre>
  
  <p>I get an error at user_is_new=...</p>
  
  <pre><code>NoMethodError (undefined method `now ' for Time:Class):
  </code></pre>
  
  <p>WHY this error pops?</p>
  
  <p>I have already test in rails console and works fine, but in a request crash </p>
  
  <hr>
  
  <h2>Solution</h2>
  
  <p>Remove (replace) the (non-ascii?)space near the minus</p>
  
  <pre><code>user_is_new = Time.now-user.created_at &lt; 30
  </code></pre>