title: resque rails 4.2 deliver_later Mailers
body: <p>I have an Ruby on Rails application where in I need to send applicant reminder mails one day prior to an interview. To do this I was planning on used The Rescue Scheduler, I am using rails v 4.2. I have run the redis server my Code is as follows:</p>
  
  <pre><code>    def sendemails
          @user2=User.new( :firstname=&gt; "Betterlucknexttime",:email=&gt;)
          SendEmailJob.new.perform(@user)
      end
  </code></pre>
  
  <p>and in the sendEmail file</p>
  
  <pre><code>    class SendEmailJob &lt; ActiveJob::Base
          queue_as :default
          def perform(user)
              UserMailer.welcome_email(user).deliver_later
          end
      end
  </code></pre>
  
  <p>in config/developement I have set <code>config.active_job.queue_adapter = :resque</code></p>
  
  <p>I check my log file and this is what I see:</p>
  
  <blockquote>
    <p>[ActiveJob] Could not log "enqueue.active_job" event.
    URI::GID::MissingModelIdError: Unable to create a Global ID for User
    without a model id.   app/jobs/send_email_job.rb:5:in perform'<br>
    app/controllers/adminusers_controller.rb:45:in sendemails'</p>
  </blockquote>
  
  <p>I general, when I don't use the deliver_later option, I get my emails delivered instantly. However I need to user the deliver_later to send these emails as a reminder in future. Your help is greatly appreciated! </p>